Class MonsterCollectionState
[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
MonsterCollectionState(Address, int, long, MonsterCollectionRewardSheet)
public MonsterCollectionState(Address address, int level, long blockIndex, MonsterCollectionRewardSheet monsterCollectionRewardSheet)
Parameters
address
Addresslevel
intblockIndex
longmonsterCollectionRewardSheet
MonsterCollectionRewardSheet
Fields
DeriveFormat
public const string DeriveFormat = "monster-collection-{0}"
Field Value
LockUpInterval
public const long LockUpInterval = 201600
Field Value
RewardInterval
public const long RewardInterval = 50400
Field Value
Properties
ExpiredBlockIndex
public long ExpiredBlockIndex { get; }
Property Value
Level
public int Level { get; }
Property Value
ReceivedBlockIndex
public long ReceivedBlockIndex { get; }
Property Value
RewardLevel
public long RewardLevel { get; }
Property Value
StartedBlockIndex
public long StartedBlockIndex { get; }
Property Value
Methods
CalculateRewards(MonsterCollectionRewardSheet, long)
public List<MonsterCollectionRewardSheet.RewardInfo> CalculateRewards(MonsterCollectionRewardSheet sheet, long blockIndex)
Parameters
sheet
MonsterCollectionRewardSheetblockIndex
long
Returns
CalculateStep(long)
public int CalculateStep(long blockIndex)
Parameters
blockIndex
long
Returns
Claim(long)
public void Claim(long blockIndex)
Parameters
blockIndex
long
DeriveAddress(Address, int)
public static Address DeriveAddress(Address baseAddress, int round)
Parameters
baseAddress
Addressround
int
Returns
- Address
Equals(MonsterCollectionState)
protected bool Equals(MonsterCollectionState other)
Parameters
other
MonsterCollectionState
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
Serialize()
public override IValue Serialize()
Returns
- IValue