Class AdventureBossModule
public static class AdventureBossModule
- Inheritance
-
AdventureBossModule
- Inherited Members
Fields
LatestSeasonAddress
public static readonly Address LatestSeasonAddress
Field Value
- Address
Methods
GetBountyBoard(IWorldState, long)
public static BountyBoard GetBountyBoard(this IWorldState worldState, long season)
Parameters
worldState
IWorldStateseason
long
Returns
GetExploreBoard(IWorldState, long)
public static ExploreBoard GetExploreBoard(this IWorldState worldState, long season)
Parameters
worldState
IWorldStateseason
long
Returns
GetExplorer(IWorldState, long, Address)
public static Explorer GetExplorer(this IWorldState worldState, long season, Address avatarAddress)
Parameters
worldState
IWorldStateseason
longavatarAddress
Address
Returns
GetExplorerList(IWorldState, long)
public static ExplorerList GetExplorerList(this IWorldState worldState, long season)
Parameters
worldState
IWorldStateseason
long
Returns
GetLatestAdventureBossSeason(IWorldState)
Get brief adventure boss season info of latest season. This only has brief, readonly data, so we must use SeasonInfo to handle season itself.
public static SeasonInfo GetLatestAdventureBossSeason(this IWorldState worldState)
Parameters
worldState
IWorldState
Returns
- SeasonInfo
LatestSeason state. If no season is started, return a state with default value(0)
GetSeasonInfo(IWorldState, long)
public static SeasonInfo GetSeasonInfo(this IWorldState worldState, long season)
Parameters
worldState
IWorldStateseason
long
Returns
SetBountyBoard(IWorld, long, BountyBoard)
public static IWorld SetBountyBoard(this IWorld world, long season, BountyBoard bountyBoard)
Parameters
world
IWorldseason
longbountyBoard
BountyBoard
Returns
- IWorld
SetExploreBoard(IWorld, long, ExploreBoard)
public static IWorld SetExploreBoard(this IWorld world, long season, ExploreBoard exploreBoard)
Parameters
world
IWorldseason
longexploreBoard
ExploreBoard
Returns
- IWorld
SetExplorer(IWorld, long, Explorer)
public static IWorld SetExplorer(this IWorld world, long season, Explorer explorer)
Parameters
Returns
- IWorld
SetExplorerList(IWorld, long, ExplorerList)
public static IWorld SetExplorerList(this IWorld world, long season, ExplorerList explorerList)
Parameters
world
IWorldseason
longexplorerList
ExplorerList
Returns
- IWorld
SetLatestAdventureBossSeason(IWorld, SeasonInfo)
public static IWorld SetLatestAdventureBossSeason(this IWorld world, SeasonInfo latestSeasonInfo)
Parameters
world
IWorldlatestSeasonInfo
SeasonInfo
Returns
- IWorld
SetSeasonInfo(IWorld, SeasonInfo)
public static IWorld SetSeasonInfo(this IWorld world, SeasonInfo seasonInfo)
Parameters
world
IWorldseasonInfo
SeasonInfo
Returns
- IWorld
TryGetExploreBoard(IWorldState, long, out ExploreBoard)
public static bool TryGetExploreBoard(this IWorldState worldState, long season, out ExploreBoard exploreBoard)
Parameters
worldState
IWorldStateseason
longexploreBoard
ExploreBoard
Returns
TryGetExplorer(IWorldState, long, Address, out Explorer)
public static bool TryGetExplorer(this IWorldState worldState, long season, Address avatarAddress, out Explorer explorer)