Class WorldInformation
[Serializable]
public class WorldInformation : IState, ISerializable, ICloneable
- Inheritance
-
WorldInformation
- Implements
- Inherited Members
- Extension Methods
Constructors
WorldInformation(Dictionary)
public WorldInformation(Dictionary serialized)
Parameters
serialized
Dictionary
WorldInformation(long, WorldSheet, bool, string)
public WorldInformation(long blockIndex, WorldSheet worldSheet, bool openAllOfWorldsAndStages = false, string avatarName = "")
Parameters
blockIndex
longworldSheet
WorldSheetopenAllOfWorldsAndStages
boolavatarName
string
WorldInformation(long, WorldSheet, int)
public WorldInformation(long blockIndex, WorldSheet worldSheet, int clearStageId = 0)
Parameters
blockIndex
longworldSheet
WorldSheetclearStageId
int
Methods
AddAndUnlockMimisbrunnrWorld(Row, long, WorldSheet, WorldUnlockSheet)
public void AddAndUnlockMimisbrunnrWorld(WorldSheet.Row worldRow, long unlockedAt, WorldSheet worldSheet, WorldUnlockSheet worldUnlockSheet)
Parameters
worldRow
WorldSheet.RowunlockedAt
longworldSheet
WorldSheetworldUnlockSheet
WorldUnlockSheet
AddAndUnlockNewWorld(Row, long, WorldSheet)
public void AddAndUnlockNewWorld(WorldSheet.Row worldRow, long unlockedAt, WorldSheet worldSheet)
Parameters
worldRow
WorldSheet.RowunlockedAt
longworldSheet
WorldSheet
ClearStage(int, int, long, WorldSheet, WorldUnlockSheet)
Clear a specific stage. And consider world unlock.
public void ClearStage(int worldId, int stageId, long clearedAt, WorldSheet worldSheet, WorldUnlockSheet worldUnlockSheet)
Parameters
worldId
intstageId
intclearedAt
longworldSheet
WorldSheetworldUnlockSheet
WorldUnlockSheet
Exceptions
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo to populate with data.
context
StreamingContextThe destination (see StreamingContext) for this serialization.
Exceptions
- SecurityException
The caller does not have the required permission.
IsStageCleared(int)
public bool IsStageCleared(int stageId)
Parameters
stageId
int
Returns
IsWorldUnlocked(int)
public bool IsWorldUnlocked(int worldId)
Parameters
worldId
int
Returns
Serialize()
public IValue Serialize()
Returns
- IValue
TryAddWorld(Row, out World)
public bool TryAddWorld(WorldSheet.Row worldRow, out WorldInformation.World world)
Parameters
worldRow
WorldSheet.Rowworld
WorldInformation.World
Returns
TryGetFirstWorld(out World)
public bool TryGetFirstWorld(out WorldInformation.World world)
Parameters
world
WorldInformation.World
Returns
TryGetLastClearedMimisbrunnrStageId(out int)
public bool TryGetLastClearedMimisbrunnrStageId(out int stageId)
Parameters
stageId
int
Returns
TryGetLastClearedStageId(out int)
Get stage id of the most recent cleared.(ignore mimisbrunnr)
public bool TryGetLastClearedStageId(out int stageId)
Parameters
stageId
int
Returns
TryGetUnlockedWorldByStageClearedBlockIndex(out World)
Get World
object that contains the most recent stage clear.
public bool TryGetUnlockedWorldByStageClearedBlockIndex(out WorldInformation.World world)
Parameters
world
WorldInformation.World
Returns
TryGetWorld(int, out World)
Get World
object that equals to worldId
argument.
public bool TryGetWorld(int worldId, out WorldInformation.World world)
Parameters
worldId
intworld
WorldInformation.World
Returns
Exceptions
TryGetWorldByStageId(int, out World)
Get World
object that contains stageId
argument.
public bool TryGetWorldByStageId(int stageId, out WorldInformation.World world)
Parameters
stageId
intworld
WorldInformation.World
Returns
UnlockWorld(int, long, WorldSheet)
Unlock a specific world.
public void UnlockWorld(int worldId, long unlockedAt, WorldSheet worldSheet)
Parameters
worldId
intunlockedAt
longworldSheet
WorldSheet
Exceptions
UpdateWorld(Row)
public void UpdateWorld(WorldSheet.Row worldRow)
Parameters
worldRow
WorldSheet.Row