Class PetState
- Namespace
- Nekoyume.Model.State
- Assembly
- Lib9c.dll
public class PetState : IState
- Inheritance
-
PetState
- Implements
-
- Inherited Members
-
Constructors
PetState(List)
public PetState(List serialized)
Parameters
serialized
List
PetState(int)
public PetState(int petId)
Parameters
petId
int
Properties
Level
public int Level { get; }
Property Value
- int
PetId
public int PetId { get; }
Property Value
- int
UnlockedBlockIndex
public long UnlockedBlockIndex { get; }
Property Value
- long
Methods
DeriveAddress(Address, int)
public static Address DeriveAddress(Address avatarAddress, int petId)
Parameters
avatarAddress
Address
petId
int
Returns
- Address
LevelUp()
Serialize()
public IValue Serialize()
Returns
- IValue
Update(long)
public void Update(long unlockedIndex)
Parameters
unlockedIndex
long
Validate(long)
public bool Validate(long blockIndex)
Parameters
blockIndex
long
Returns
- bool