Class WorldInformation
[Serializable]
public class WorldInformation : IState, ISerializable, ICloneable
- Inheritance
-
WorldInformation
- Implements
- Inherited Members
- Extension Methods
Constructors
WorldInformation(Dictionary)
public WorldInformation(Dictionary serialized)
Parameters
serializedDictionary
WorldInformation(long, WorldSheet, bool, string)
public WorldInformation(long blockIndex, WorldSheet worldSheet, bool openAllOfWorldsAndStages = false, string avatarName = "")
Parameters
blockIndexlongworldSheetWorldSheetopenAllOfWorldsAndStagesboolavatarNamestring
WorldInformation(long, WorldSheet, int)
public WorldInformation(long blockIndex, WorldSheet worldSheet, int clearStageId = 0)
Parameters
blockIndexlongworldSheetWorldSheetclearStageIdint
Methods
AddAndUnlockMimisbrunnrWorld(Row, long, WorldSheet, WorldUnlockSheet)
public void AddAndUnlockMimisbrunnrWorld(WorldSheet.Row worldRow, long unlockedAt, WorldSheet worldSheet, WorldUnlockSheet worldUnlockSheet)
Parameters
worldRowWorldSheet.RowunlockedAtlongworldSheetWorldSheetworldUnlockSheetWorldUnlockSheet
AddAndUnlockNewWorld(Row, long, WorldSheet)
public void AddAndUnlockNewWorld(WorldSheet.Row worldRow, long unlockedAt, WorldSheet worldSheet)
Parameters
worldRowWorldSheet.RowunlockedAtlongworldSheetWorldSheet
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
worldIdintstageIdintclearedAtlongworldSheetWorldSheetworldUnlockSheetWorldUnlockSheet
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
infoSerializationInfoThe SerializationInfo to populate with data.
contextStreamingContextThe destination (see StreamingContext) for this serialization.
Exceptions
- SecurityException
The caller does not have the required permission.
IsStageCleared(int)
public bool IsStageCleared(int stageId)
Parameters
stageIdint
Returns
IsWorldUnlocked(int)
public bool IsWorldUnlocked(int worldId)
Parameters
worldIdint
Returns
Serialize()
public IValue Serialize()
Returns
- IValue
TryAddWorld(Row, out World)
public bool TryAddWorld(WorldSheet.Row worldRow, out WorldInformation.World world)
Parameters
worldRowWorldSheet.RowworldWorldInformation.World
Returns
TryGetFirstWorld(out World)
public bool TryGetFirstWorld(out WorldInformation.World world)
Parameters
worldWorldInformation.World
Returns
TryGetLastClearedMimisbrunnrStageId(out int)
public bool TryGetLastClearedMimisbrunnrStageId(out int stageId)
Parameters
stageIdint
Returns
TryGetLastClearedStageId(out int)
Get stage id of the most recent cleared.(ignore mimisbrunnr)
public bool TryGetLastClearedStageId(out int stageId)
Parameters
stageIdint
Returns
TryGetUnlockedWorldByStageClearedBlockIndex(out World)
Get World object that contains the most recent stage clear.
public bool TryGetUnlockedWorldByStageClearedBlockIndex(out WorldInformation.World world)
Parameters
worldWorldInformation.World
Returns
TryGetWorld(int, out World)
Get World object that equals to worldId argument.
public bool TryGetWorld(int worldId, out WorldInformation.World world)
Parameters
worldIdintworldWorldInformation.World
Returns
Exceptions
TryGetWorldByStageId(int, out World)
Get World object that contains stageId argument.
public bool TryGetWorldByStageId(int stageId, out WorldInformation.World world)
Parameters
stageIdintworldWorldInformation.World
Returns
UnlockWorld(int, long, WorldSheet)
Unlock a specific world.
public void UnlockWorld(int worldId, long unlockedAt, WorldSheet worldSheet)
Parameters
worldIdintunlockedAtlongworldSheetWorldSheet
Exceptions
UpdateWorld(Row)
public void UpdateWorld(WorldSheet.Row worldRow)
Parameters
worldRowWorldSheet.Row