public abstract class Nem : IStateDependent
Variable number used in icon state animations. This class is called Nem after the reconstructed Proto-Indo-European root for "number", to differentiate it from more useful and commonly used number-like types. See: https://en.wiktionary.org/wiki/Reconstruction:Proto-Indo-European/nem-

Constructors

Nem

#
protected Nem(float value)
Construct a new number.
value (float)Value of number.

Nem

#
protected Nem(IReader reader)
reader (IReader)

Properties

Value

#
public float Value { get; }

Methods

Make

#
public static Nem Make(float constant)
Create a constant number.
constant (float)Constant value.
Number representing a constant value.

Make

#
public static Nem Make(string state, float domain0, float domain1, float range0, float range1)
Create a new linearly dependent number.
state (string)State associated with number.
domain0 (float)State domain start.
domain1 (float)State domain end.
range0 (float)Value range start.
range1 (float)Value range end.
Number.

Make

#
public static Nem Make(string state)
Create a new number which is slaved to a specific state.
state (string)Category.
Slaved number.

Store

#
public virtual void Store(IWriter writer)
writer (IWriter)
Store

Update

#
public abstract void Update(string name, double value)
name (string)
value (double)
Update

Convertors

OperationResultDescription
implicitNemdoubleConvert a number to a floating point value.
implicitNemfloatConvert a number to a floating point value.
implicitdoubleNemCreate a new constant number.
implicitfloatNemCreate a new constant number.
implicitintNemCreate a new constant number.
implicitstringNemCreate a new number which is slaved to a state.