Drag[en]gine Script Module DragonScript
1.21
|
Network state. More...
Public Member Functions | |
Constructors | |
NetworkState | new () |
Create network state. More... | |
Management | |
bool | getReadOnly () |
Network state is read only. More... | |
Values | |
int | getValueCount () |
Nnumber of values. More... | |
void | addValue (NetworkStateValueType type, NetworkStateValueFormat format) |
Add value. More... | |
NetworkStateValueFormat | getValueFormatAt (int index) |
format of value at index. More... | |
int | getValueIntAt (int index) |
Value of integer value at index. More... | |
float | getValueFloatAt (int index) |
Value of float value at index. More... | |
String | getValueStringAt (int index) |
Value of string value at index. More... | |
Point | getValuePoint2At (int index) |
Value of point-2 value at index. More... | |
Point3 | getValuePoint3At (int index) |
Value of point-3 value at index. More... | |
Vector2 | getValueVector2At (int index) |
Value of vector-2 value at index. More... | |
Vector | getValueVector3At (int index) |
Value of vector-3 value at index. More... | |
DVector | getValueDVector3At (int index) |
Value of dvector-3 value at index. More... | |
Quaternion | getValueQuaternionAt (int index) |
Value of quaternion value at index. More... | |
void | getValueDataAt (int index, MemoryFile data) |
Value of data value at index. More... | |
void | setValueIntAt (int index, int value) |
Set value of integer value at index. More... | |
void | setValueFloatAt (int index, float value) |
Set value of float value at index. More... | |
void | setValueStringAt (int index, String value) |
Set value of string value at index. More... | |
void | setValuePoint2At (int index, Point value) |
Set value of point-2 value at index. More... | |
void | setValuePoint3At (int index, Point3 value) |
Set value of point-3 value at index. More... | |
void | setValueVector2At (int index, Vector2 value) |
Set value of vector-2 value at index. More... | |
void | setValueVector3At (int index, Vector value) |
Set value of vector-3 value at index. More... | |
void | setValueDVector3At (int index, DVector value) |
Set value of dvector-3 value at index. More... | |
void | setValueQuaternionAt (int index, Quaternion value) |
Set value of quaternion value at index. More... | |
void | setValueDataAt (int index, MemoryFile data) |
Set value of data value at index. More... | |
float | getValuePrecisionAt (int index) |
Precision of floating point based value at index. More... | |
void | setValuePrecisionAt (int index, float precision) |
Set precision of floating point based value at index. More... | |
NetworkStateListener | getStateListener () |
State listener or null if not set. More... | |
void | setStateListener (NetworkStateListener listener) |
Set state listener or null if not set. More... | |
Network state.
This is a native class.
void Dragengine.Networking.NetworkState.addValue | ( | NetworkStateValueType | type, |
NetworkStateValueFormat | format | ||
) |
Add value.
type | Type of value to add. |
format | Format to use. Has to be non-null for these types:
|
bool Dragengine.Networking.NetworkState.getReadOnly | ( | ) |
Network state is read only.
NetworkStateListener Dragengine.Networking.NetworkState.getStateListener | ( | ) |
State listener or null if not set.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
int Dragengine.Networking.NetworkState.getValueCount | ( | ) |
Nnumber of values.
void Dragengine.Networking.NetworkState.getValueDataAt | ( | int | index, |
MemoryFile | data | ||
) |
Value of data value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
Value is read into the provided memory file.
DVector Dragengine.Networking.NetworkState.getValueDVector3At | ( | int | index | ) |
Value of dvector-3 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
float Dragengine.Networking.NetworkState.getValueFloatAt | ( | int | index | ) |
Value of float value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
NetworkStateValueFormat Dragengine.Networking.NetworkState.getValueFormatAt | ( | int | index | ) |
format of value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
int Dragengine.Networking.NetworkState.getValueIntAt | ( | int | index | ) |
Value of integer value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
Point Dragengine.Networking.NetworkState.getValuePoint2At | ( | int | index | ) |
Value of point-2 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
Point3 Dragengine.Networking.NetworkState.getValuePoint3At | ( | int | index | ) |
Value of point-3 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
float Dragengine.Networking.NetworkState.getValuePrecisionAt | ( | int | index | ) |
Precision of floating point based value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
EInvalidParam | Value at index is not VALUE_FLOAT, VALUE_QUATERNION, VALUE_VECTOR2 or VALUE_VECTOR3 |
Quaternion Dragengine.Networking.NetworkState.getValueQuaternionAt | ( | int | index | ) |
Value of quaternion value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
String Dragengine.Networking.NetworkState.getValueStringAt | ( | int | index | ) |
Value of string value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
Vector2 Dragengine.Networking.NetworkState.getValueVector2At | ( | int | index | ) |
Value of vector-2 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
Vector Dragengine.Networking.NetworkState.getValueVector3At | ( | int | index | ) |
Value of vector-3 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
NetworkState Dragengine.Networking.NetworkState.new | ( | ) |
Create network state.
void Dragengine.Networking.NetworkState.setStateListener | ( | NetworkStateListener | listener | ) |
Set state listener or null if not set.
void Dragengine.Networking.NetworkState.setValueDataAt | ( | int | index, |
MemoryFile | data | ||
) |
Set value of data value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValueDVector3At | ( | int | index, |
DVector | value | ||
) |
Set value of dvector-3 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValueFloatAt | ( | int | index, |
float | value | ||
) |
Set value of float value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValueIntAt | ( | int | index, |
int | value | ||
) |
Set value of integer value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValuePoint2At | ( | int | index, |
Point | value | ||
) |
Set value of point-2 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValuePoint3At | ( | int | index, |
Point3 | value | ||
) |
Set value of point-3 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValuePrecisionAt | ( | int | index, |
float | precision | ||
) |
Set precision of floating point based value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
EInvalidParam | Value at index is not VALUE_FLOAT, VALUE_QUATERNION, VALUE_VECTOR2 or VALUE_VECTOR3 |
void Dragengine.Networking.NetworkState.setValueQuaternionAt | ( | int | index, |
Quaternion | value | ||
) |
Set value of quaternion value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValueStringAt | ( | int | index, |
String | value | ||
) |
Set value of string value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValueVector2At | ( | int | index, |
Vector2 | value | ||
) |
Set value of vector-2 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |
void Dragengine.Networking.NetworkState.setValueVector3At | ( | int | index, |
Vector | value | ||
) |
Set value of vector-3 value at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getValueCount(). |