Table of Contents

Class DecimalStat

Namespace
Nekoyume.Model.Stat
Assembly
Lib9c.dll
[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

type StatType
value decimal
additionalValue decimal

Fields

StatType

public StatType StatType

Field Value

StatType

Properties

AdditionalValue

public decimal AdditionalValue { get; }

Property Value

decimal

AdditionalValueAsLong

public long AdditionalValueAsLong { get; }

Property Value

long

BaseValue

public decimal BaseValue { get; }

Property Value

decimal

BaseValueAsLong

public long BaseValueAsLong { get; }

Property Value

long

HasAdditionalValue

public bool HasAdditionalValue { get; }

Property Value

bool

HasAdditionalValueAsLong

public bool HasAdditionalValueAsLong { get; }

Property Value

bool

HasBaseValue

public bool HasBaseValue { get; }

Property Value

bool

HasBaseValueAsLong

public bool HasBaseValueAsLong { get; }

Property Value

bool

HasTotalValueAsLong

public bool HasTotalValueAsLong { get; }

Property Value

bool

TotalValue

public decimal TotalValue { get; }

Property Value

decimal

TotalValueAsLong

[Obsolete("For legacy equipments. (Before world 7 patch)")]
public long TotalValueAsLong { get; }

Property Value

long

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

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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