Table of Contents

Class MonsterCollectionState

Namespace
Nekoyume.Model.State
Assembly
Lib9c.dll
[Serializable]
public class MonsterCollectionState : State, IState
Inheritance
MonsterCollectionState
Implements
Inherited Members

Constructors

MonsterCollectionState(Dictionary)

public MonsterCollectionState(Dictionary serialized)

Parameters

serialized Dictionary

MonsterCollectionState(Address, int, long)

public MonsterCollectionState(Address address, int level, long blockIndex)

Parameters

address Address
level int
blockIndex long

MonsterCollectionState(Address, int, long, MonsterCollectionRewardSheet)

public MonsterCollectionState(Address address, int level, long blockIndex, MonsterCollectionRewardSheet monsterCollectionRewardSheet)

Parameters

address Address
level int
blockIndex long
monsterCollectionRewardSheet MonsterCollectionRewardSheet

Fields

DeriveFormat

public const string DeriveFormat = "monster-collection-{0}"

Field Value

string

LockUpInterval

public const long LockUpInterval = 201600

Field Value

long

RewardInterval

public const long RewardInterval = 50400

Field Value

long

Properties

ExpiredBlockIndex

public long ExpiredBlockIndex { get; }

Property Value

long

Level

public int Level { get; }

Property Value

int

ReceivedBlockIndex

public long ReceivedBlockIndex { get; }

Property Value

long

RewardLevel

public long RewardLevel { get; }

Property Value

long

StartedBlockIndex

public long StartedBlockIndex { get; }

Property Value

long

Methods

CalculateRewards(MonsterCollectionRewardSheet, long)

public List<MonsterCollectionRewardSheet.RewardInfo> CalculateRewards(MonsterCollectionRewardSheet sheet, long blockIndex)

Parameters

sheet MonsterCollectionRewardSheet
blockIndex long

Returns

List<MonsterCollectionRewardSheet.RewardInfo>

CalculateStep(long)

public int CalculateStep(long blockIndex)

Parameters

blockIndex long

Returns

int

Claim(long)

public void Claim(long blockIndex)

Parameters

blockIndex long

DeriveAddress(Address, int)

public static Address DeriveAddress(Address baseAddress, int round)

Parameters

baseAddress Address
round int

Returns

Address

Equals(MonsterCollectionState)

protected bool Equals(MonsterCollectionState other)

Parameters

other MonsterCollectionState

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsLocked(long)

public bool IsLocked(long blockIndex)

Parameters

blockIndex long

Returns

bool

Serialize()

public override IValue Serialize()

Returns

IValue