Table of Contents

Class AllRuneState

Namespace
Nekoyume.Model.State
Assembly
Lib9c.dll

This is new version of rune state. This state stores all rune states of an avatar. AllRuneState has all RuneStates as dictionary and has methods to get/set/update each RuneState. Use this with RuneStateModule.

public class AllRuneState : IState
Inheritance
AllRuneState
Implements
Inherited Members

Constructors

AllRuneState()

public AllRuneState()

AllRuneState(List)

public AllRuneState(List serialized)

Parameters

serialized List

AllRuneState(int, int)

public AllRuneState(int runeId, int level = 0)

Parameters

runeId int
level int

Properties

Runes

public Dictionary<int, RuneState> Runes { get; }

Property Value

Dictionary<int, RuneState>

Methods

AddRuneState(RuneState)

public void AddRuneState(RuneState runeState)

Parameters

runeState RuneState

AddRuneState(int, int)

public void AddRuneState(int runeId, int level = 0)

Parameters

runeId int
level int

GetRuneState(int)

public RuneState GetRuneState(int runeId)

Parameters

runeId int

Returns

RuneState

Serialize()

public IValue Serialize()

Returns

IValue

SetRuneState(RuneState)

public void SetRuneState(RuneState runeState)

Parameters

runeState RuneState

SetRuneState(int, int)

public void SetRuneState(int runeId, int level)

Parameters

runeId int
level int

TryGetRuneState(int, out RuneState)

public bool TryGetRuneState(int runeId, out RuneState runeState)

Parameters

runeId int
runeState RuneState

Returns

bool