Class CombinationSlotState
public class CombinationSlotState : State, IState
- Inheritance
-
CombinationSlotState
- Implements
- Inherited Members
- Extension Methods
Constructors
CombinationSlotState(Dictionary)
public CombinationSlotState(Dictionary serialized)
Parameters
serializedDictionary
CombinationSlotState(Address, int)
public CombinationSlotState(Address address, int index = 0)
Parameters
addressAddressindexint
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
addressAddressslotIndexint
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
resultAttachmentActionResultblockIndexlongworkCompleteBlockIndexlongpetIdint?
Update(long)
public void Update(long blockIndex)
Parameters
blockIndexlong
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
avatarStateAvatarStateblockIndexlong
Returns
ValidateSlotIndex(int)
public static bool ValidateSlotIndex(int index)
Parameters
indexint
Returns
ValidateV2(long)
public bool ValidateV2(long blockIndex)
Parameters
blockIndexlong