Class Equipment
[Serializable]
public class Equipment : ItemUsable, INonFungibleItem, IEquippableItem, IItem, IState
- Inheritance
-
Equipment
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Equipment(Dictionary)
public Equipment(Dictionary serialized)
Parameters
serialized
Dictionary
Equipment(Row, Guid, long, bool, int)
public Equipment(EquipmentItemSheet.Row data, Guid id, long requiredBlockIndex, bool madeWithMimisbrunnrRecipe = false, int iconId = 0)
Parameters
data
EquipmentItemSheet.Rowid
GuidrequiredBlockIndex
longmadeWithMimisbrunnrRecipe
booliconId
int
Equipment(SerializationInfo, StreamingContext)
protected Equipment(SerializationInfo info, StreamingContext _)
Parameters
Fields
ByCustomCraft
public bool ByCustomCraft
Field Value
CraftWithRandom
public bool CraftWithRandom
Field Value
Exp
public long Exp
Field Value
HasRandomOnlyIcon
public bool HasRandomOnlyIcon
Field Value
IconId
public int IconId
Field Value
equipped
public bool equipped
Field Value
level
public int level
Field Value
optionCountFromCombination
public int optionCountFromCombination
Field Value
Properties
Equipped
public bool Equipped { get; }
Property Value
MadeWithMimisbrunnrRecipe
public bool MadeWithMimisbrunnrRecipe { get; }
Property Value
SetId
public int SetId { get; }
Property Value
SpineResourcePath
public string SpineResourcePath { get; }
Property Value
Stat
public DecimalStat Stat { get; }
Property Value
UniqueStatType
public StatType UniqueStatType { get; }
Property Value
Methods
Equals(Equipment)
protected bool Equals(Equipment other)
Parameters
other
Equipment
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
Equip()
public void Equip()
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetIncrementAmountOfEnhancement()
public decimal GetIncrementAmountOfEnhancement()
Returns
GetOptions()
public List<object> GetOptions()
Returns
GetRealExp(EquipmentItemSheet, EnhancementCostSheetV3)
public long GetRealExp(EquipmentItemSheet itemSheet, EnhancementCostSheetV3 costSheet)
Parameters
itemSheet
EquipmentItemSheetcostSheet
EnhancementCostSheetV3
Returns
LevelUp(IRandom, Row, bool)
[Obsolete("Since ItemEnhancement12, Use `SetLevel` instead.")]
public void LevelUp(IRandom random, EnhancementCostSheetV2.Row row, bool isGreatSuccess)
Parameters
random
IRandomrow
EnhancementCostSheetV2.RowisGreatSuccess
bool
LevelUpV1()
[Obsolete("Use LevelUp")]
public void LevelUpV1()
Serialize()
public override IValue Serialize()
Returns
- IValue
SetLevel(IRandom, int, EnhancementCostSheetV3)
public void SetLevel(IRandom random, int targetLevel, EnhancementCostSheetV3 sheet)
Parameters
random
IRandomtargetLevel
intsheet
EnhancementCostSheetV3
Unequip()
public void Unequip()