|
Drag[en]gine Script Module DragonScript 1.32.1
|
Network state. More...
Public Member Functions | |
Constructors | |
| NetworkState | new () |
| Create network state. | |
Management | |
| bool | getReadOnly () |
| Network state is read only. | |
Values | |
| int | getValueCount () |
| Nnumber of values. | |
| void | addValue (NetworkStateValueType type, NetworkStateValueFormat format) |
| Add value. | |
| NetworkStateValueFormat | getValueFormatAt (int index) |
| format of value at index. | |
| int | getValueIntAt (int index) |
| Value of integer value at index. | |
| float | getValueFloatAt (int index) |
| Value of float value at index. | |
| String | getValueStringAt (int index) |
| Value of string value at index. | |
| Point | getValuePoint2At (int index) |
| Value of point-2 value at index. | |
| Point3 | getValuePoint3At (int index) |
| Value of point-3 value at index. | |
| Vector2 | getValueVector2At (int index) |
| Value of vector-2 value at index. | |
| Vector | getValueVector3At (int index) |
| Value of vector-3 value at index. | |
| DVector | getValueDVector3At (int index) |
| Value of dvector-3 value at index. | |
| Quaternion | getValueQuaternionAt (int index) |
| Value of quaternion value at index. | |
| void | getValueDataAt (int index, MemoryFile data) |
| Value of data value at index. | |
| void | setValueIntAt (int index, int value) |
| Set value of integer value at index. | |
| void | setValueFloatAt (int index, float value) |
| Set value of float value at index. | |
| void | setValueStringAt (int index, String value) |
| Set value of string value at index. | |
| void | setValuePoint2At (int index, Point value) |
| Set value of point-2 value at index. | |
| void | setValuePoint3At (int index, Point3 value) |
| Set value of point-3 value at index. | |
| void | setValueVector2At (int index, Vector2 value) |
| Set value of vector-2 value at index. | |
| void | setValueVector3At (int index, Vector value) |
| Set value of vector-3 value at index. | |
| void | setValueDVector3At (int index, DVector value) |
| Set value of dvector-3 value at index. | |
| void | setValueQuaternionAt (int index, Quaternion value) |
| Set value of quaternion value at index. | |
| void | setValueDataAt (int index, MemoryFile data) |
| Set value of data value at index. | |
| float | getValuePrecisionAt (int index) |
| Precision of floating point based value at index. | |
| void | setValuePrecisionAt (int index, float precision) |
| Set precision of floating point based value at index. | |
| NetworkStateListener | getStateListener () |
| State listener or null if not set. | |
| void | setStateListener (NetworkStateListener listener) |
| Set state listener or null if not set. | |
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(). |