Table of Contents

Class StateProperties

Namespace
NominalSystems.Maths
Assembly
NominalSystems.Maths.dll

[NominalSystems] A collection of states by name

public sealed class StateProperties
Inheritance
StateProperties

Constructors

StateProperties()

Default constructor

public StateProperties()

StateProperties(StateProperties)

Default constructor

public StateProperties(StateProperties a)

Parameters

a StateProperties

StateProperties(Guid)

Constructor, allowing for an ID to be assigned to the StateProperties object

public StateProperties(Guid id)

Parameters

id Guid

Properties

ID

The ID of this StateProperties object

public Guid ID { get; }

Property Value

Guid

this[string]

Get a 'StateProperty' object with name

public StateProperty this[string name] { get; }

Parameters

name string

state name

Property Value

StateProperty

a 'StateProperty'

Methods

BindDouble(object, Guid, string)

Bind a 'double' value property to the State Properties.

public DoubleProperty BindDouble(object obj, Guid guid, string name)

Parameters

obj object

The object that the property value is attached to

guid Guid
name string

The property name on the object

Returns

DoubleProperty

a "DoubleProperty' variable

BindMatrix3(object, Guid, string)

Bind a 'Matrix3' value property to the State Properties.

public Matrix3Property BindMatrix3(object obj, Guid guid, string name)

Parameters

obj object

The object that the property value is attached to

guid Guid
name string

The property name on the object

Returns

Matrix3Property

a 'Matrix3Property' variable

BindVector(object, Guid, string)

Bind a 'Vector' value property to the State Properties.

public VectorProperty BindVector(object obj, Guid guid, string name)

Parameters

obj object
guid Guid
name string

Property name

Returns

VectorProperty

a 'VectorProperty' variable

BindVector3(object, Guid, string)

Bind a 'Vector3' value property to the State Properties

public Vector3Property BindVector3(object obj, Guid guid, string name)

Parameters

obj object

The object that the property value is attached to

guid Guid
name string

The property name on the object

Returns

Vector3Property

a 'Vector3Property' variable

ForEach(Action<StateProperty>)

Iterate through each property with a action

public void ForEach(Action<StateProperty> action)

Parameters

action Action<StateProperty>

value action

ForEach(Action<string, StateProperty>)

Iterate through each property with a action

public void ForEach(Action<string, StateProperty> action)

Parameters

action Action<string, StateProperty>

key-value vation

Get(string, uint)

Get/Create a state property by name

public StateProperty Get(string name, uint size)

Parameters

name string

the state name

size uint

the state size

Returns

StateProperty

a 'StateProperty'

GetDouble(string)

Get/Create a 'double' property

public DoubleProperty GetDouble(string name)

Parameters

name string

property name

Returns

DoubleProperty

a 'DoubleProperty' value

GetMatrix3(string)

Get/Create a 'Matrix3' property

public Matrix3Property GetMatrix3(string name)

Parameters

name string

property name

Returns

Matrix3Property

a 'Matrix3Property' value

GetVector(string, uint)

Get/Create a 'Vector' property of a specified size.

public VectorProperty GetVector(string name, uint size)

Parameters

name string

Property name

size uint

Vector size

Returns

VectorProperty

a 'VectorProperty' value

GetVector3(string)

Get/Create a 'Vector3' property

public Vector3Property GetVector3(string name)

Parameters

name string

property name

Returns

Vector3Property

a 'Vector3Property' value