Represents a flexible container for storing a single value of varying data types. Supports types such as float, int, bool, Vector3, Quaternion, and string.
More...
|
|
override string | ToString () |
| void | SetValue (object value) |
| | Sets the value of the datum using a boxed object. Supported types are: float, int, bool, Vector3, Quaternion, and string. Automatically updates the internal type.
|
|
float | AsFloat () |
| | Gets the stored float value. Only valid if Type is Float.
|
|
int | AsInt () |
| | Gets the stored int value. Only valid if Type is Int.
|
|
bool | AsBool () |
| | Gets the stored bool value. Only valid if Type is Bool.
|
|
Vector3 | AsVector3 () |
| | Gets the stored Vector3 value. Only valid if Type is Vector3.
|
|
Quaternion | AsQuaternion () |
| | Gets the stored Quaternion value. Only valid if Type is Quaternion.
|
|
string | AsString () |
| | Gets the stored string value. Only valid if Type is String.
|
| object | GetConverter (float min, float max) |
| | Returns a converter object appropriate for the current Datum type.
|
|
|
LemmingValueType | Type [get] |
| | Gets the type of value currently stored.
|
|
object | Value [get] |
| | Gets the stored value as a boxed object, according to the stored type.
|
|
string | ConverterType [get] |
| | Returns the name of the converter struct or method for the current type.
|
|
|
LemmingValueType | type |
|
float | floatValue |
|
int | intValue |
|
bool | boolValue |
|
Vector3 | vector3Value |
|
Quaternion | quaternionValue |
|
string | stringValue |
Represents a flexible container for storing a single value of varying data types. Supports types such as float, int, bool, Vector3, Quaternion, and string.
◆ GetConverter()
| object Lemmings.LemmingDatum.GetConverter |
( |
float | min, |
|
|
float | max ) |
|
inline |
Returns a converter object appropriate for the current Datum type.
- Parameters
-
| min | Minimum value for normalization. |
| max | Maximum value for normalization. |
- Returns
- An object that can perform normalization and curve evaluation.
◆ SetValue()
| void Lemmings.LemmingDatum.SetValue |
( |
object | value | ) |
|
|
inline |
Sets the value of the datum using a boxed object. Supported types are: float, int, bool, Vector3, Quaternion, and string. Automatically updates the internal type.
- Parameters
-
The documentation for this class was generated from the following file:
- Assets/Lemmings/Scripts/Namespace/LemmingDatum.cs