![]() |
Diarkis C# Client SDK
|
Public Member Functions | |
Number (int current, int min, int max, int step, int interval) | |
Creates an instance of . More... | |
void | Incrementer () |
Makes the instance an incremental number. This means the current value will increase at every interval by the value of step. More... | |
void | Decrementer () |
Makes the instance a decremental number. This means the current value will decrease at every interval by the value of step. 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 increase and/or decrease. More... | |
int | GetCurrentValue () |
Returns the curerrent value of the instance. More... | |
bool | IsIncrementer () |
Returns true if the instance is incremental type. More... | |
bool | IsDecrementer () |
Returns true if the instance is decremental type. More... | |
Represents a numeric value that increase and decrease over time.
|
inline |
Creates an instance of .
current | The initial value of the instance. |
min | Minimum allowed value of the instance. |
maximum | Maximum allowed value of the instance. |
step | Value used to increase and/or decrease the current value by at every interval. |
interval | Interval in seconds to increase and/or decrease the current value. |
|
inline |
Makes the instance a decremental number. This means the current value will decrease at every interval by the value of step.
|
inline |
Returns the curerrent value of the instance.
|
inline |
Makes the instance an incremental number. This means the current value will increase at every interval by the value of step.
|
inline |
Returns true if the instance is decremental type.
|
inline |
Returns true if the instance is incremental type.
|
inline |
Starts the instance's time to increase and/or decrease.
|
inline |
Updates the current value and update time. This should be used to synchronize with the server.
current | Replace the current value with this value. |
updated | Replace the internal last updated timestamp with this value. |