Class AvatarState
Agent가 포함하는 각 Avatar의 상태 모델이다.
[Serializable]
public class AvatarState : State, IState, ICloneable
- Inheritance
-
AvatarState
- Implements
- Inherited Members
- Extension Methods
Constructors
AvatarState(Dictionary)
public AvatarState(Dictionary serialized)
Parameters
serializedDictionary
AvatarState(List)
public AvatarState(List serialized)
Parameters
serializedList
AvatarState(Address, Address, long, QuestList, WorldInformation, Address, string)
public AvatarState(Address address, Address agentAddress, long blockIndex, QuestList questList, WorldInformation worldInformation, Address rankingMapAddress, string name = null)
Parameters
addressAddressagentAddressAddressblockIndexlongquestListQuestListworldInformationWorldInformationrankingMapAddressAddressnamestring
AvatarState(AvatarState)
public AvatarState(AvatarState avatarState)
Parameters
avatarStateAvatarState
Fields
CombinationSlotCapacity
public const int CombinationSlotCapacity = 8
Field Value
CurrentVersion
public const int CurrentVersion = 2
Field Value
DefaultCombinationSlotCount
public const int DefaultCombinationSlotCount = 4
Field Value
RankingMapAddress
[Obsolete("don't use this field.")]
public readonly Address RankingMapAddress
Field Value
- Address
actionPoint
public int actionPoint
Field Value
agentAddress
public Address agentAddress
Field Value
- Address
blockIndex
public long blockIndex
Field Value
characterId
public int characterId
Field Value
combinationSlotAddresses
[Obsolete("don't use this field, use AllCombinationSlotState instead.")]
public List<Address> combinationSlotAddresses
Field Value
- List<Address>
dailyRewardReceivedIndex
public long dailyRewardReceivedIndex
Field Value
ear
public int ear
Field Value
eventMap
public CollectionMap eventMap
Field Value
exp
public long exp
Field Value
hair
public int hair
Field Value
inventory
public Inventory inventory
Field Value
itemMap
public CollectionMap itemMap
Field Value
lens
public int lens
Field Value
level
public int level
Field Value
mailBox
public MailBox mailBox
Field Value
monsterMap
public CollectionMap monsterMap
Field Value
name
public string name
Field Value
questList
public QuestList questList
Field Value
stageMap
public CollectionMap stageMap
Field Value
tail
public int tail
Field Value
updatedAt
public long updatedAt
Field Value
worldInformation
public WorldInformation worldInformation
Field Value
Properties
NameWithHash
public string NameWithHash { get; }
Property Value
Nonce
public int Nonce { get; }
Property Value
Version
public int Version { get; }
Property Value
Methods
Apply(Player, long)
public void Apply(Player player, long index)
Parameters
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
Create(Address, Address, long, AvatarSheets, Address, string)
public static AvatarState Create(Address address, Address agentAddress, long blockIndex, AvatarSheets avatarSheets, Address rankingMapAddress, string name = null)
Parameters
addressAddressagentAddressAddressblockIndexlongavatarSheetsAvatarSheetsrankingMapAddressAddressnamestring
Returns
CreateAvatarAddress()
public static Address CreateAvatarAddress()
Returns
- Address
Customize(int, int, int, int)
public void Customize(int hair, int lens, int ear, int tail)
Parameters
EquipCostumes(HashSet<int>)
public void EquipCostumes(HashSet<int> costumeIds)
Parameters
EquipEquipments(List<Guid>)
public void EquipEquipments(List<Guid> equipmentIds)
Parameters
EquipItems(IEnumerable<Guid>)
public void EquipItems(IEnumerable<Guid> itemIds)
Parameters
itemIdsIEnumerable<Guid>
GetArmorId()
public int GetArmorId()
Returns
GetNonFungibleItems<T>(List<Guid>)
public List<T> GetNonFungibleItems<T>(List<Guid> itemIds)
Parameters
Returns
- List<T>
Type Parameters
T
GetPortraitId()
public int GetPortraitId()
Returns
GetRandomSeed()
public int GetRandomSeed()
Returns
Serialize()
public override IValue Serialize()
Returns
- IValue
SerializeList()
public IValue SerializeList()
Returns
- IValue
Update(IStageSimulator)
public void Update(IStageSimulator stageSimulator)
Parameters
stageSimulatorIStageSimulator
Update(Mail)
public void Update(Mail mail)
Parameters
mailMail
Update2(Mail)
[Obsolete("Use Update")]
public void Update2(Mail mail)
Parameters
mailMail
Update3(Mail)
[Obsolete("Use Update")]
public void Update3(Mail mail)
Parameters
mailMail
UpdateFromAddCostume(Costume, bool)
public void UpdateFromAddCostume(Costume costume, bool canceled)
Parameters
UpdateFromAddItem(ItemBase, int, bool)
public void UpdateFromAddItem(ItemBase itemUsable, int count, bool canceled)
Parameters
UpdateFromAddItem(ItemUsable, bool)
public void UpdateFromAddItem(ItemUsable itemUsable, bool canceled)
Parameters
itemUsableItemUsablecanceledbool
UpdateFromAddItem2(ItemBase, int, bool)
[Obsolete("Use UpdateFromAddItem")]
public void UpdateFromAddItem2(ItemBase itemUsable, int count, bool canceled)
Parameters
UpdateFromAddItem2(ItemUsable, bool)
[Obsolete("Use UpdateFromAddItem")]
public void UpdateFromAddItem2(ItemUsable itemUsable, bool canceled)
Parameters
itemUsableItemUsablecanceledbool
UpdateFromCombination(ItemUsable)
public void UpdateFromCombination(ItemUsable itemUsable)
Parameters
itemUsableItemUsable
UpdateFromCombination2(ItemUsable)
public void UpdateFromCombination2(ItemUsable itemUsable)
Parameters
itemUsableItemUsable
UpdateFromItemEnhancement(Equipment)
public void UpdateFromItemEnhancement(Equipment equipment)
Parameters
equipmentEquipment
UpdateFromItemEnhancement2(Equipment)
public void UpdateFromItemEnhancement2(Equipment equipment)
Parameters
equipmentEquipment
UpdateFromQuestReward(Quest, MaterialItemSheet)
public void UpdateFromQuestReward(Quest quest, MaterialItemSheet materialItemSheet)
Parameters
questQuestmaterialItemSheetMaterialItemSheet
UpdateFromQuestReward2(Quest, MaterialItemSheet)
[Obsolete("Use UpdateFromQuestReward")]
public void UpdateFromQuestReward2(Quest quest, MaterialItemSheet materialItemSheet)
Parameters
questQuestmaterialItemSheetMaterialItemSheet
UpdateFromRapidCombination(ResultModel, long)
public void UpdateFromRapidCombination(CombinationConsumable5.ResultModel result, long requiredIndex)
Parameters
resultCombinationConsumable5.ResultModelrequiredIndexlong
UpdateFromRapidCombinationV2(ResultModel, long)
public void UpdateFromRapidCombinationV2(RapidCombination5.ResultModel result, long requiredIndex)
Parameters
resultRapidCombination5.ResultModelrequiredIndexlong
UpdateGeneralQuest(IEnumerable<QuestEventType>)
public void UpdateGeneralQuest(IEnumerable<QuestEventType> types)
Parameters
typesIEnumerable<QuestEventType>
UpdateQuestRewards(MaterialItemSheet)
public void UpdateQuestRewards(MaterialItemSheet materialItemSheet)
Parameters
materialItemSheetMaterialItemSheet
UpdateQuestRewards2(MaterialItemSheet)
[Obsolete("Use UpdateQuestRewards")]
public void UpdateQuestRewards2(MaterialItemSheet materialItemSheet)
Parameters
materialItemSheetMaterialItemSheet
UpdateTemp(Mail, long)
[Obsolete("No longer in use.")]
public void UpdateTemp(Mail mail, long currentBlockIndex)
Parameters
ValidateConsumable(List<Guid>, long)
public List<int> ValidateConsumable(List<Guid> consumableIds, long currentBlockIndex)
Parameters
Returns
ValidateConsumableV2(List<Guid>, long, GameConfigState)
public List<int> ValidateConsumableV2(List<Guid> consumableIds, long currentBlockIndex, GameConfigState gameConfigState)
Parameters
consumableIdsList<Guid>currentBlockIndexlonggameConfigStateGameConfigState
Returns
ValidateCostume(HashSet<int>)
public void ValidateCostume(HashSet<int> costumeIds)
Parameters
ValidateCostume(IEnumerable<Guid>)
public List<int> ValidateCostume(IEnumerable<Guid> costumeIds)
Parameters
costumeIdsIEnumerable<Guid>
Returns
ValidateCostumeV2(IEnumerable<Guid>, GameConfigState)
public List<Costume> ValidateCostumeV2(IEnumerable<Guid> costumeIds, GameConfigState gameConfigState)
Parameters
costumeIdsIEnumerable<Guid>gameConfigStateGameConfigState
Returns
ValidateEquipments(List<Guid>, long)
public void ValidateEquipments(List<Guid> equipmentIds, long blockIndex)
Parameters
ValidateEquipmentsV2(List<Guid>, long)
public List<Equipment> ValidateEquipmentsV2(List<Guid> equipmentIds, long blockIndex)
Parameters
Returns
ValidateEquipmentsV3(List<Guid>, long, GameConfigState)
public List<Equipment> ValidateEquipmentsV3(List<Guid> equipmentIds, long blockIndex, GameConfigState gameConfigState)
Parameters
equipmentIdsList<Guid>blockIndexlonggameConfigStateGameConfigState
Returns
ValidateItemRequirement(List<int>, List<Equipment>, ItemRequirementSheet, EquipmentItemRecipeSheet, EquipmentItemSubRecipeSheetV2, EquipmentItemOptionSheet, string)
public void ValidateItemRequirement(List<int> itemIds, List<Equipment> equipments, ItemRequirementSheet requirementSheet, EquipmentItemRecipeSheet recipeSheet, EquipmentItemSubRecipeSheetV2 subRecipeSheet, EquipmentItemOptionSheet itemOptionSheet, string addressesHex)
Parameters
itemIdsList<int>equipmentsList<Equipment>requirementSheetItemRequirementSheetrecipeSheetEquipmentItemRecipeSheetsubRecipeSheetEquipmentItemSubRecipeSheetV2itemOptionSheetEquipmentItemOptionSheetaddressesHexstring