Class CombinationSlotState
public class CombinationSlotState : State, IState
- Inheritance
-
CombinationSlotState
- Implements
- Inherited Members
- Extension Methods
Constructors
CombinationSlotState(Dictionary)
public CombinationSlotState(Dictionary serialized)
Parameters
serialized
Dictionary
CombinationSlotState(Address, int)
public CombinationSlotState(Address address, int index = 0)
Parameters
address
Addressindex
int
Fields
DeriveFormat
public const string DeriveFormat = "combination-slot-{0}"
Field Value
Properties
Index
It is a CombinationSlot index. start from 0.
public int Index { get; set; }
Property Value
IsUnlocked
public bool IsUnlocked { get; }
Property Value
PetId
public int? PetId { get; }
Property Value
- int?
RequiredBlockIndex
public long RequiredBlockIndex { get; }
Property Value
Result
public AttachmentActionResult Result { get; }
Property Value
WorkCompleteBlockIndex
Serialize key is "unlockBlockIndex".
public long WorkCompleteBlockIndex { get; }
Property Value
WorkStartBlockIndex
Serialize key is "startBlockIndex".
public long WorkStartBlockIndex { get; }
Property Value
Methods
DeriveAddress(Address, int)
Is only used for migration legacy state.
public static Address DeriveAddress(Address address, int slotIndex)
Parameters
address
AddressslotIndex
int
Returns
- Address
Serialize()
public override IValue Serialize()
Returns
- IValue
Unlock()
public bool Unlock()
Returns
Update(AttachmentActionResult, long, long, int?)
public void Update(AttachmentActionResult result, long blockIndex, long workCompleteBlockIndex, int? petId = null)
Parameters
result
AttachmentActionResultblockIndex
longworkCompleteBlockIndex
longpetId
int?
Update(long)
public void Update(long blockIndex)
Parameters
blockIndex
long
Update(long, Material, int)
public void Update(long blockIndex, Material material, int count)
Parameters
UpdateV2(long, Material, int)
public void UpdateV2(long blockIndex, Material material, int count)
Parameters
Validate(AvatarState, long)
[Obsolete("Use ValidateV2")]
public bool Validate(AvatarState avatarState, long blockIndex)
Parameters
avatarState
AvatarStateblockIndex
long
Returns
ValidateSlotIndex(int)
public static bool ValidateSlotIndex(int index)
Parameters
index
int
Returns
ValidateV2(long)
public bool ValidateV2(long blockIndex)
Parameters
blockIndex
long