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
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
this[string]
Get a 'StateProperty' object with name
public StateProperty this[string name] { get; }
Parameters
name
stringstate 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
objectThe object that the property value is attached to
guid
Guidname
stringThe 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
objectThe object that the property value is attached to
guid
Guidname
stringThe 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
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
objectThe object that the property value is attached to
guid
Guidname
stringThe 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
Returns
- StateProperty
a 'StateProperty'
GetDouble(string)
Get/Create a 'double' property
public DoubleProperty GetDouble(string name)
Parameters
name
stringproperty name
Returns
- DoubleProperty
a 'DoubleProperty' value
GetMatrix3(string)
Get/Create a 'Matrix3' property
public Matrix3Property GetMatrix3(string name)
Parameters
name
stringproperty 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
Returns
- VectorProperty
a 'VectorProperty' value
GetVector3(string)
Get/Create a 'Vector3' property
public Vector3Property GetVector3(string name)
Parameters
name
stringproperty name
Returns
- Vector3Property
a 'Vector3Property' value