Drag[en]gine Script Module DragonScript
1.23
|
Synchronized floating point value. More...
Public Member Functions | |
Constructors | |
SynchronizedFloat | new () |
Create synchronized floating point value with initial value of 0. More... | |
SynchronizedFloat | new (float value) |
Create synchronized floating point value with initial value. More... | |
SynchronizedFloat | new (SynchronizedFloat copy) |
Create copy of synchronized floating point value. More... | |
Management | |
float | getValue () |
Value of network state or local value if not set. More... | |
void | setValue (float value) |
Set value and update network state if set. More... | |
NetworkState | getNetworkState () |
Linked network state or null if not set. More... | |
int | getNetworkStateValue () |
Linked network state value index or -1 if not set. More... | |
void | setNetworkState (NetworkState state, int value) |
Set network state value to synchronize or null to clear. More... | |
String | toString () |
String representation. More... | |
Synchronized floating point value.
Local floating point value optionally synchronized across the network using a NetworkState value.
This is a native class.
NetworkState Dragengine.Networking.SynchronizedFloat.getNetworkState | ( | ) |
Linked network state or null if not set.
int Dragengine.Networking.SynchronizedFloat.getNetworkStateValue | ( | ) |
Linked network state value index or -1 if not set.
float Dragengine.Networking.SynchronizedFloat.getValue | ( | ) |
Value of network state or local value if not set.
SynchronizedFloat Dragengine.Networking.SynchronizedFloat.new | ( | ) |
Create synchronized floating point value with initial value of 0.
SynchronizedFloat Dragengine.Networking.SynchronizedFloat.new | ( | float | value | ) |
Create synchronized floating point value with initial value.
SynchronizedFloat Dragengine.Networking.SynchronizedFloat.new | ( | SynchronizedFloat | copy | ) |
Create copy of synchronized floating point value.
void Dragengine.Networking.SynchronizedFloat.setNetworkState | ( | NetworkState | state, |
int | value | ||
) |
Set network state value to synchronize or null to clear.
EOutOfBoundary | value is less than 0 or larger than or equal to network state value count. |
void Dragengine.Networking.SynchronizedFloat.setValue | ( | float | value | ) |
Set value and update network state if set.
String Dragengine.Networking.SynchronizedFloat.toString | ( | ) |
String representation.