Table of Contents

Class WorldInformation

Namespace
Nekoyume.Model
Assembly
Lib9c.dll
[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 long
worldSheet WorldSheet
openAllOfWorldsAndStages bool
avatarName string

WorldInformation(long, WorldSheet, int)

public WorldInformation(long blockIndex, WorldSheet worldSheet, int clearStageId = 0)

Parameters

blockIndex long
worldSheet WorldSheet
clearStageId int

Methods

AddAndUnlockMimisbrunnrWorld(Row, long, WorldSheet, WorldUnlockSheet)

public void AddAndUnlockMimisbrunnrWorld(WorldSheet.Row worldRow, long unlockedAt, WorldSheet worldSheet, WorldUnlockSheet worldUnlockSheet)

Parameters

worldRow WorldSheet.Row
unlockedAt long
worldSheet WorldSheet
worldUnlockSheet WorldUnlockSheet

AddAndUnlockNewWorld(Row, long, WorldSheet)

public void AddAndUnlockNewWorld(WorldSheet.Row worldRow, long unlockedAt, WorldSheet worldSheet)

Parameters

worldRow WorldSheet.Row
unlockedAt long
worldSheet 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 int
stageId int
clearedAt long
worldSheet WorldSheet
worldUnlockSheet WorldUnlockSheet

Exceptions

FailedToUnlockWorldException

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 SerializationInfo

The SerializationInfo to populate with data.

context StreamingContext

The 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

bool

IsWorldUnlocked(int)

public bool IsWorldUnlocked(int worldId)

Parameters

worldId int

Returns

bool

Serialize()

public IValue Serialize()

Returns

IValue

TryAddWorld(Row, out World)

public bool TryAddWorld(WorldSheet.Row worldRow, out WorldInformation.World world)

Parameters

worldRow WorldSheet.Row
world WorldInformation.World

Returns

bool

TryGetFirstWorld(out World)

public bool TryGetFirstWorld(out WorldInformation.World world)

Parameters

world WorldInformation.World

Returns

bool

TryGetLastClearedMimisbrunnrStageId(out int)

public bool TryGetLastClearedMimisbrunnrStageId(out int stageId)

Parameters

stageId int

Returns

bool

TryGetLastClearedStageId(out int)

Get stage id of the most recent cleared.(ignore mimisbrunnr)

public bool TryGetLastClearedStageId(out int stageId)

Parameters

stageId int

Returns

bool

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

bool

TryGetWorld(int, out World)

Get World object that equals to worldId argument.

public bool TryGetWorld(int worldId, out WorldInformation.World world)

Parameters

worldId int
world WorldInformation.World

Returns

bool

Exceptions

KeyNotFoundException

TryGetWorldByStageId(int, out World)

Get World object that contains stageId argument.

public bool TryGetWorldByStageId(int stageId, out WorldInformation.World world)

Parameters

stageId int
world WorldInformation.World

Returns

bool

UnlockWorld(int, long, WorldSheet)

Unlock a specific world.

public void UnlockWorld(int worldId, long unlockedAt, WorldSheet worldSheet)

Parameters

worldId int
unlockedAt long
worldSheet WorldSheet

Exceptions

FailedToUnlockWorldException

UpdateWorld(Row)

public void UpdateWorld(WorldSheet.Row worldRow)

Parameters

worldRow WorldSheet.Row