Class ArenaHelper
There are only things that don't change
public static class ArenaHelper
- Inheritance
-
ArenaHelper
- Inherited Members
Fields
ScoreLimits
public static readonly IReadOnlyDictionary<ArenaType, (int upper, int lower)> ScoreLimits
Field Value
ScoreLimitsV1
[Obsolete("Use `ScoreLimits` instead.")]
public static readonly IReadOnlyDictionary<ArenaType, (int, int)> ScoreLimitsV1
Field Value
ScoreLimitsV2
[Obsolete("Use `ScoreLimits` instead.")]
public static readonly IReadOnlyDictionary<ArenaType, (int upper, int lower)> ScoreLimitsV2
Field Value
ScoreLimitsV3
[Obsolete("Use `ScoreLimits` instead.")]
public static readonly IReadOnlyDictionary<ArenaType, (int upper, int lower)> ScoreLimitsV3
Field Value
Methods
DeriveArenaAddress(int, int)
public static Address DeriveArenaAddress(int championshipId, int round)
Parameters
Returns
- Address
GetCurrentTicketResetCount(long, long, int)
public static int GetCurrentTicketResetCount(long currentBlockIndex, long roundStartBlockIndex, int interval)
Parameters
Returns
GetEntranceFee(RoundData, long, int)
public static FungibleAssetValue GetEntranceFee(ArenaSheet.RoundData roundData, long currentBlockIndex, int avatarLevel)
Parameters
roundDataArenaSheet.RoundDatacurrentBlockIndexlongavatarLevelint
Returns
- FungibleAssetValue
GetMaxPurchasedTicketCount(RoundData)
[Obsolete("not use since v100320, battle_arena6. Use `ArenaSheet.RoundData.MaxPurchaseCount`")]
public static long GetMaxPurchasedTicketCount(ArenaSheet.RoundData roundData)
Parameters
roundDataArenaSheet.RoundData
Returns
GetMedalTotalCount(Row, AvatarState)
public static int GetMedalTotalCount(ArenaSheet.Row row, AvatarState avatarState)
Parameters
rowArenaSheet.RowavatarStateAvatarState
Returns
GetRewardCount(int)
public static int GetRewardCount(int score)
Parameters
scoreint
Returns
GetScores(int, int)
public static (int myWinScore, int myDefeatScore, int enemyDefeatScore) GetScores(int myScore, int enemyScore)
Parameters
Returns
GetScoresV1(int, int)
[Obsolete("Use `GetScores()` instead.")]
public static (int myWinScore, int myDefeatScore, int enemyDefeatScore) GetScoresV1(int myScore, int enemyScore)
Parameters
Returns
GetTicketPrice(RoundData, ArenaInformation, Currency)
public static FungibleAssetValue GetTicketPrice(ArenaSheet.RoundData roundData, ArenaInformation arenaInformation, Currency currency)
Parameters
roundDataArenaSheet.RoundDataarenaInformationArenaInformationcurrencyCurrency
Returns
- FungibleAssetValue
ValidateScoreDifference(IReadOnlyDictionary<ArenaType, (int, int)>, ArenaType, int, int)
public static bool ValidateScoreDifference(IReadOnlyDictionary<ArenaType, (int, int)> scoreLimits, ArenaType arenaType, int myScore, int enemyScore)
Parameters
scoreLimitsIReadOnlyDictionary<ArenaType, (int, int)>arenaTypeArenaTypemyScoreintenemyScoreint
Returns
ValidateScoreDifferenceV1(IReadOnlyDictionary<ArenaType, (int, int)>, ArenaType, int, int)
[Obsolete("Use `ValidateScoreDifference()` instead.")]
public static bool ValidateScoreDifferenceV1(IReadOnlyDictionary<ArenaType, (int, int)> scoreLimits, ArenaType arenaType, int myScore, int enemyScore)
Parameters
scoreLimitsIReadOnlyDictionary<ArenaType, (int, int)>arenaTypeArenaTypemyScoreintenemyScoreint
Returns
ValidateScoreDifferenceV2(IReadOnlyDictionary<ArenaType, (int, int)>, ArenaType, int, int)
[Obsolete("Use `ValidateScoreDifference()` instead.")]
public static bool ValidateScoreDifferenceV2(IReadOnlyDictionary<ArenaType, (int, int)> scoreLimits, ArenaType arenaType, int myScore, int enemyScore)
Parameters
scoreLimitsIReadOnlyDictionary<ArenaType, (int, int)>arenaTypeArenaTypemyScoreintenemyScoreint