Class DecimalStat
[Serializable]
public class DecimalStat : ICloneable, IState
- Inheritance
-
DecimalStat
- Implements
- Inherited Members
- Extension Methods
Constructors
DecimalStat(Dictionary)
public DecimalStat(Dictionary serialized)
Parameters
serialized
Dictionary
DecimalStat(DecimalStat)
protected DecimalStat(DecimalStat value)
Parameters
value
DecimalStat
DecimalStat(StatType, decimal, decimal)
public DecimalStat(StatType type, decimal value = 0, decimal additionalValue = 0)
Parameters
Fields
StatType
public StatType StatType
Field Value
Properties
AdditionalValue
public decimal AdditionalValue { get; }
Property Value
AdditionalValueAsLong
public long AdditionalValueAsLong { get; }
Property Value
BaseValue
public decimal BaseValue { get; }
Property Value
BaseValueAsLong
public long BaseValueAsLong { get; }
Property Value
HasAdditionalValue
public bool HasAdditionalValue { get; }
Property Value
HasAdditionalValueAsLong
public bool HasAdditionalValueAsLong { get; }
Property Value
HasBaseValue
public bool HasBaseValue { get; }
Property Value
HasBaseValueAsLong
public bool HasBaseValueAsLong { get; }
Property Value
HasTotalValueAsLong
public bool HasTotalValueAsLong { get; }
Property Value
TotalValue
public decimal TotalValue { get; }
Property Value
TotalValueAsLong
[Obsolete("For legacy equipments. (Before world 7 patch)")]
public long TotalValueAsLong { get; }
Property Value
Methods
AddAdditionalValue(decimal)
public void AddAdditionalValue(decimal value)
Parameters
value
decimal
AddBaseValue(decimal)
public void AddBaseValue(decimal value)
Parameters
value
decimal
Clone()
Creates a new object that is a copy of the current instance.
public virtual object Clone()
Returns
- object
A new object that is a copy of this instance.
Deserialize(Dictionary)
public virtual void Deserialize(Dictionary serialized)
Parameters
serialized
Dictionary
Equals(DecimalStat)
protected bool Equals(DecimalStat other)
Parameters
other
DecimalStat
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
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Reset()
public virtual void Reset()
Serialize()
public virtual IValue Serialize()
Returns
- IValue
SerializeWithoutAdditional()
public IValue SerializeWithoutAdditional()
Returns
- IValue
SetAdditionalValue(decimal)
public void SetAdditionalValue(decimal value)
Parameters
value
decimal
SetBaseValue(decimal)
public void SetBaseValue(decimal value)
Parameters
value
decimal