Class StatsMap
[Serializable]
public class StatsMap : IStats, IBaseAndAdditionalStats, IState
- Inheritance
-
StatsMap
- Implements
- Inherited Members
Properties
ATK
public long ATK { get; }
Property Value
AdditionalATK
public long AdditionalATK { get; }
Property Value
AdditionalArmorPenetration
public long AdditionalArmorPenetration { get; }
Property Value
AdditionalCDMG
public long AdditionalCDMG { get; }
Property Value
AdditionalCRI
public long AdditionalCRI { get; }
Property Value
AdditionalDEF
public long AdditionalDEF { get; }
Property Value
AdditionalDRR
public long AdditionalDRR { get; }
Property Value
AdditionalDRV
public long AdditionalDRV { get; }
Property Value
AdditionalHIT
public long AdditionalHIT { get; }
Property Value
AdditionalHP
public long AdditionalHP { get; }
Property Value
AdditionalSPD
public long AdditionalSPD { get; }
Property Value
AdditionalThorn
public long AdditionalThorn { get; }
Property Value
ArmorPenetration
public long ArmorPenetration { get; }
Property Value
BaseATK
public long BaseATK { get; }
Property Value
BaseArmorPenetration
public long BaseArmorPenetration { get; }
Property Value
BaseCDMG
public long BaseCDMG { get; }
Property Value
BaseCRI
public long BaseCRI { get; }
Property Value
BaseDEF
public long BaseDEF { get; }
Property Value
BaseDRR
public long BaseDRR { get; }
Property Value
BaseDRV
public long BaseDRV { get; }
Property Value
BaseHIT
public long BaseHIT { get; }
Property Value
BaseHP
public long BaseHP { get; }
Property Value
BaseSPD
public long BaseSPD { get; }
Property Value
BaseThorn
public long BaseThorn { get; }
Property Value
CDMG
public long CDMG { get; }
Property Value
CRI
public long CRI { get; }
Property Value
DEF
public long DEF { get; }
Property Value
DRR
public long DRR { get; }
Property Value
DRV
public long DRV { get; }
Property Value
HIT
public long HIT { get; }
Property Value
HP
public long HP { get; }
Property Value
SPD
public long SPD { get; }
Property Value
Thorn
public long Thorn { get; }
Property Value
Methods
AddStatAdditionalValue(StatModifier)
public void AddStatAdditionalValue(StatModifier statModifier)
Parameters
statModifier
StatModifier
AddStatAdditionalValue(StatType, decimal)
public void AddStatAdditionalValue(StatType key, decimal additionalValue)
Parameters
AddStatValue(StatType, decimal)
public void AddStatValue(StatType key, decimal value)
Parameters
Deserialize(Dictionary)
public void Deserialize(Dictionary serialized)
Parameters
serialized
Dictionary
Equals(StatsMap)
protected bool Equals(StatsMap other)
Parameters
other
StatsMap
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
GetAdditionalStat(StatType)
public long GetAdditionalStat(StatType statType)
Parameters
statType
StatType
Returns
GetAdditionalStats()
public IEnumerable<DecimalStat> GetAdditionalStats()
Returns
GetAdditionalStats(bool)
public IEnumerable<(StatType statType, long additionalValue)> GetAdditionalStats(bool ignoreZero = false)
Parameters
ignoreZero
bool
Returns
GetBaseAndAdditionalStats(bool)
public IEnumerable<(StatType statType, long baseValue, long additionalValue)> GetBaseAndAdditionalStats(bool ignoreZero = false)
Parameters
ignoreZero
bool
Returns
GetBaseStat(StatType)
public long GetBaseStat(StatType statType)
Parameters
statType
StatType
Returns
GetBaseStats(bool)
public IEnumerable<(StatType statType, long baseValue)> GetBaseStats(bool ignoreZero = false)
Parameters
ignoreZero
bool
Returns
GetDecimalStats(bool)
public IEnumerable<DecimalStat> GetDecimalStats(bool ignoreZero)
Parameters
ignoreZero
bool
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetStat(StatType)
public long GetStat(StatType statType)
Parameters
statType
StatType
Returns
GetStats(bool)
public IEnumerable<(StatType statType, long value)> GetStats(bool ignoreZero = false)
Parameters
ignoreZero
bool
Returns
Serialize()
public IValue Serialize()
Returns
- IValue
SetStatAdditionalValue(StatType, decimal)
public void SetStatAdditionalValue(StatType key, decimal additionalValue)