Class to store a collection of robotic data. Contains function to serialize and deserialize to json string.
More...
Inherits EnableSerializableValue.
|
|
| RoboticData () |
| | Constructor.
|
| |
| void | SetData (string name, float value, float settime=-1f) |
| | Sets the data value for a given name in the RoboticData object.
|
| |
| string | JSONString () |
| | Returns a JSON string representation of the current RoboticData object.
|
| |
| string | Serialize () |
| | Serializes the RoboticData object into a JSON string.
|
| |
| object | Deserialize (string json) |
| | Deserialize the given JSON string into a RoboticData object.
|
| |
| override bool | Equals (object obj) |
| | Determines whether the current RoboticData object is equal to another object.
|
| |
|
|
Dictionary< string, RoboticDatum > | data |
| | Represents a collection of robotic data in the Enablegames namespace.
|
| |
|
float | time |
| | Represents the time when the values in the class is last changed.
|
| |
|
bool | moving = false |
| | Represents whether the robotic data is moving or not.
|
| |
Class to store a collection of robotic data. Contains function to serialize and deserialize to json string.
◆ Deserialize()
| object Enablegames.RoboticData.Deserialize |
( |
string | json | ) |
|
|
inline |
Deserialize the given JSON string into a RoboticData object.
- Parameters
-
| json | The JSON string to deserialize. |
- Returns
- A deserialized RoboticData object.
◆ Equals()
| override bool Enablegames.RoboticData.Equals |
( |
object | obj | ) |
|
|
inline |
Determines whether the current RoboticData object is equal to another object.
- Parameters
-
| obj | The object to compare with the current object. |
- Returns
- true if the current object is equal to the other object; otherwise, false.
◆ JSONString()
| string Enablegames.RoboticData.JSONString |
( |
| ) |
|
|
inline |
Returns a JSON string representation of the current RoboticData object.
- Returns
- A string that represents the serialized RoboticData object as a JSON string.
◆ Serialize()
| string Enablegames.RoboticData.Serialize |
( |
| ) |
|
|
inline |
Serializes the RoboticData object into a JSON string.
- Returns
- A JSON string representation of the RoboticData object.
◆ SetData()
| void Enablegames.RoboticData.SetData |
( |
string | name, |
|
|
float | value, |
|
|
float | settime = -1f ) |
|
inline |
Sets the data value for a given name in the RoboticData object.
- Parameters
-
| name | The name of the data value. |
| value | The value to set for the data. |
| settime | The time at which the data is set. Default value is -1f. |
The documentation for this class was generated from the following file:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/Avatar/SkeletonData.cs