![]() |
Diarkis C# Client SDK
|
Public Member Functions | |
| State (int[] states, int interval) | |
| Creates an instance of State. More... | |
| void | Circular () |
| Makes the instance circular. More... | |
| void | NonCircular () |
| Makes the instance non-circular. More... | |
| void | Forward () |
| Moves the state forward by one step regardless of the time. More... | |
| void | Backward () |
| Moves the state backward by one step regardless of the time. More... | |
| void | Update (int current, int updated) |
| Updates the current value and update time. This should be used to synchronize with the server. More... | |
| void | Start () |
| Starts the instance's time to change the state. More... | |
| int | GetCurrentState () |
| Returns the current state. More... | |
Represents a numerical state tht changes over time. The change can be circular or non-circular.
|
inline |
Creates an instance of State.
| states | List of numberic states.
|
|
inline |
Moves the state backward by one step regardless of the time.
|
inline |
Makes the instance circular.
|
inline |
Moves the state forward by one step regardless of the time.
|
inline |
Returns the current state.
|
inline |
Makes the instance non-circular.
|
inline |
Starts the instance's time to change the state.
|
inline |
Updates the current value and update time. This should be used to synchronize with the server.
| current | Replace the current state with this value. |
| updated | Replace the internal last updated timestamp with this value. |
1.8.17