Table of Contents

Struct LeaderboardQuery

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

Which board to read: the source column, which template or season it is filtered to, and who is eligible to appear on it.

public readonly struct LeaderboardQuery : IEquatable<LeaderboardQuery>
Implements
Inherited Members

Remarks

A value type with value equality so a caller can key a cache on it directly: two queries that would produce the same SQL and the same parameters are equal.

Constructors

LeaderboardQuery(LeaderboardSourceKind, int, int, bool)

public LeaderboardQuery(LeaderboardSourceKind source, int templateID, int minimumGames, bool rankStaff)

Parameters

source LeaderboardSourceKind
templateID int
minimumGames int
rankStaff bool

Fields

MinimumGames

Arena only: games a character must have finished this season to be ranked. Values below 1 are read as 1, so a row that was inserted and never scored cannot appear.

public readonly int MinimumGames

Field Value

int

RankStaff

When false, only characters on player accounts are ranked; game masters' and administrators' characters are left off. Banned accounts are never ranked.

public readonly bool RankStaff

Field Value

bool

Source

The stored number the board ranks by.

public readonly LeaderboardSourceKind Source

Field Value

LeaderboardSourceKind

TemplateID

The attribute or achievement template id for those sources; ignored for the arena, whose season is always the active one.

public readonly int TemplateID

Field Value

int

Methods

Equals(LeaderboardQuery)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(LeaderboardQuery other)

Parameters

other LeaderboardQuery

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.