Table of Contents

Class MonsterCollectionState0

Namespace
Nekoyume.Model.State
Assembly
Lib9c.dll
[Obsolete("This class is reserved for backwards compatibility with MonsterCollection0 only.", false)]
[Serializable]
public class MonsterCollectionState0 : State, IState
Inheritance
MonsterCollectionState0
Implements
Inherited Members

Constructors

MonsterCollectionState0(Dictionary)

public MonsterCollectionState0(Dictionary serialized)

Parameters

serialized Dictionary

MonsterCollectionState0(Address, int, long)

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

Parameters

address Address
level int
blockIndex long

MonsterCollectionState0(Address, int, long, MonsterCollectionRewardSheet)

public MonsterCollectionState0(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

ExpirationIndex

public const long ExpirationIndex = 201600

Field Value

long

LockUpInterval

public const long LockUpInterval = 201600

Field Value

long

RewardCapacity

public const int RewardCapacity = 4

Field Value

int

RewardInterval

public const long RewardInterval = 50400

Field Value

long

Properties

End

public bool End { get; }

Property Value

bool

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

RewardLevelMap

public Dictionary<long, List<MonsterCollectionRewardSheet.RewardInfo>> RewardLevelMap { get; }

Property Value

Dictionary<long, List<MonsterCollectionRewardSheet.RewardInfo>>

RewardMap

public Dictionary<long, MonsterCollectionResult> RewardMap { get; }

Property Value

Dictionary<long, MonsterCollectionResult>

StartedBlockIndex

public long StartedBlockIndex { get; }

Property Value

long

Methods

CanReceive(long)

public bool CanReceive(long blockIndex)

Parameters

blockIndex long

Returns

bool

DeriveAddress(Address, int)

public static Address DeriveAddress(Address baseAddress, int collectRound)

Parameters

baseAddress Address
collectRound int

Returns

Address

Equals(MonsterCollectionState0)

protected bool Equals(MonsterCollectionState0 other)

Parameters

other MonsterCollectionState0

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.

GetRewardLevel(long)

public long GetRewardLevel(long blockIndex)

Parameters

blockIndex long

Returns

long

IsLock(long)

public bool IsLock(long blockIndex)

Parameters

blockIndex long

Returns

bool

Receive(long)

public void Receive(long blockIndex)

Parameters

blockIndex long

Serialize()

public override IValue Serialize()

Returns

IValue

SerializeV2()

public IValue SerializeV2()

Returns

IValue

Update(int, long, MonsterCollectionRewardSheet)

public void Update(int level, long rewardLevel, MonsterCollectionRewardSheet monsterCollectionRewardSheet)

Parameters

level int
rewardLevel long
monsterCollectionRewardSheet MonsterCollectionRewardSheet

UpdateRewardMap(long, MonsterCollectionResult, long)

public void UpdateRewardMap(long rewardLevel, MonsterCollectionResult avatarAddress, long blockIndex)

Parameters

rewardLevel long
avatarAddress MonsterCollectionResult
blockIndex long