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
serialized
Dictionary
AvatarState(List)
public AvatarState(List serialized)
Parameters
serialized
List
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
address
AddressagentAddress
AddressblockIndex
longquestList
QuestListworldInformation
WorldInformationrankingMapAddress
Addressname
string
AvatarState(AvatarState)
public AvatarState(AvatarState avatarState)
Parameters
avatarState
AvatarState
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
address
AddressagentAddress
AddressblockIndex
longavatarSheets
AvatarSheetsrankingMapAddress
Addressname
string
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
itemIds
IEnumerable<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
stageSimulator
IStageSimulator
Update(Mail)
public void Update(Mail mail)
Parameters
mail
Mail
Update2(Mail)
[Obsolete("Use Update")]
public void Update2(Mail mail)
Parameters
mail
Mail
Update3(Mail)
[Obsolete("Use Update")]
public void Update3(Mail mail)
Parameters
mail
Mail
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
itemUsable
ItemUsablecanceled
bool
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
itemUsable
ItemUsablecanceled
bool
UpdateFromCombination(ItemUsable)
public void UpdateFromCombination(ItemUsable itemUsable)
Parameters
itemUsable
ItemUsable
UpdateFromCombination2(ItemUsable)
public void UpdateFromCombination2(ItemUsable itemUsable)
Parameters
itemUsable
ItemUsable
UpdateFromItemEnhancement(Equipment)
public void UpdateFromItemEnhancement(Equipment equipment)
Parameters
equipment
Equipment
UpdateFromItemEnhancement2(Equipment)
public void UpdateFromItemEnhancement2(Equipment equipment)
Parameters
equipment
Equipment
UpdateFromQuestReward(Quest, MaterialItemSheet)
public void UpdateFromQuestReward(Quest quest, MaterialItemSheet materialItemSheet)
Parameters
quest
QuestmaterialItemSheet
MaterialItemSheet
UpdateFromQuestReward2(Quest, MaterialItemSheet)
[Obsolete("Use UpdateFromQuestReward")]
public void UpdateFromQuestReward2(Quest quest, MaterialItemSheet materialItemSheet)
Parameters
quest
QuestmaterialItemSheet
MaterialItemSheet
UpdateFromRapidCombination(ResultModel, long)
public void UpdateFromRapidCombination(CombinationConsumable5.ResultModel result, long requiredIndex)
Parameters
result
CombinationConsumable5.ResultModelrequiredIndex
long
UpdateFromRapidCombinationV2(ResultModel, long)
public void UpdateFromRapidCombinationV2(RapidCombination5.ResultModel result, long requiredIndex)
Parameters
result
RapidCombination5.ResultModelrequiredIndex
long
UpdateGeneralQuest(IEnumerable<QuestEventType>)
public void UpdateGeneralQuest(IEnumerable<QuestEventType> types)
Parameters
types
IEnumerable<QuestEventType>
UpdateQuestRewards(MaterialItemSheet)
public void UpdateQuestRewards(MaterialItemSheet materialItemSheet)
Parameters
materialItemSheet
MaterialItemSheet
UpdateQuestRewards2(MaterialItemSheet)
[Obsolete("Use UpdateQuestRewards")]
public void UpdateQuestRewards2(MaterialItemSheet materialItemSheet)
Parameters
materialItemSheet
MaterialItemSheet
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
consumableIds
List<Guid>currentBlockIndex
longgameConfigState
GameConfigState
Returns
ValidateCostume(HashSet<int>)
public void ValidateCostume(HashSet<int> costumeIds)
Parameters
ValidateCostume(IEnumerable<Guid>)
public List<int> ValidateCostume(IEnumerable<Guid> costumeIds)
Parameters
costumeIds
IEnumerable<Guid>
Returns
ValidateCostumeV2(IEnumerable<Guid>, GameConfigState)
public List<Costume> ValidateCostumeV2(IEnumerable<Guid> costumeIds, GameConfigState gameConfigState)
Parameters
costumeIds
IEnumerable<Guid>gameConfigState
GameConfigState
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
equipmentIds
List<Guid>blockIndex
longgameConfigState
GameConfigState
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
itemIds
List<int>equipments
List<Equipment>requirementSheet
ItemRequirementSheetrecipeSheet
EquipmentItemRecipeSheetsubRecipeSheet
EquipmentItemSubRecipeSheetV2itemOptionSheet
EquipmentItemOptionSheetaddressesHex
string