Class MonsterCollectionState0
[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
MonsterCollectionState0(Address, int, long, MonsterCollectionRewardSheet)
public MonsterCollectionState0(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
ExpirationIndex
public const long ExpirationIndex = 201600
Field Value
LockUpInterval
public const long LockUpInterval = 201600
Field Value
RewardCapacity
public const int RewardCapacity = 4
Field Value
RewardInterval
public const long RewardInterval = 50400
Field Value
Properties
End
public bool End { get; }
Property Value
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
RewardLevelMap
public Dictionary<long, List<MonsterCollectionRewardSheet.RewardInfo>> RewardLevelMap { get; }
Property Value
RewardMap
public Dictionary<long, MonsterCollectionResult> RewardMap { get; }
Property Value
StartedBlockIndex
public long StartedBlockIndex { get; }
Property Value
Methods
CanReceive(long)
public bool CanReceive(long blockIndex)
Parameters
blockIndex
long
Returns
DeriveAddress(Address, int)
public static Address DeriveAddress(Address baseAddress, int collectRound)
Parameters
baseAddress
AddresscollectRound
int
Returns
- Address
Equals(MonsterCollectionState0)
protected bool Equals(MonsterCollectionState0 other)
Parameters
other
MonsterCollectionState0
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.
GetRewardLevel(long)
public long GetRewardLevel(long blockIndex)
Parameters
blockIndex
long
Returns
IsLock(long)
public bool IsLock(long blockIndex)
Parameters
blockIndex
long
Returns
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
intrewardLevel
longmonsterCollectionRewardSheet
MonsterCollectionRewardSheet
UpdateRewardMap(long, MonsterCollectionResult, long)
public void UpdateRewardMap(long rewardLevel, MonsterCollectionResult avatarAddress, long blockIndex)
Parameters
rewardLevel
longavatarAddress
MonsterCollectionResultblockIndex
long