Table of Contents

Struct ArenaRatingSource

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

Where the arena former reads a candidate's rating from.

public readonly struct ArenaRatingSource
Inherited Members

Remarks

Unranked matches band and balance on the lifetime PvP Rank attribute, so the former needs the attribute's template id. Ranked matches use the season rating table, so it needs the season. Either may be left at zero to read every candidate as rating 0, which disables banding and makes balancing a no-op.

Constructors

ArenaRatingSource(long, int, int)

public ArenaRatingSource(long seasonID, int attributeTemplateID, int defaultRating)

Parameters

seasonID long
attributeTemplateID int
defaultRating int

Fields

AttributeTemplateID

Template id of the character attribute that supplies the rating when SeasonID is 0, or 0.

public readonly int AttributeTemplateID

Field Value

int

DefaultRating

Rating assumed for a character with no rating row. 1500 for ranked, 0 for the attribute.

public readonly int DefaultRating

Field Value

int

None

public static readonly ArenaRatingSource None

Field Value

ArenaRatingSource

SeasonID

Season whose arena_rating rows supply the rating, or 0.

public readonly long SeasonID

Field Value

long

Methods

FromAttribute(int)

public static ArenaRatingSource FromAttribute(int attributeTemplateId)

Parameters

attributeTemplateId int

Returns

ArenaRatingSource

FromSeason(long, int)

public static ArenaRatingSource FromSeason(long seasonId, int defaultRating = 1500)

Parameters

seasonId long
defaultRating int

Returns

ArenaRatingSource