Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Networking.NetworkState Class Reference

Network state. More...

Inheritance diagram for Dragengine.Networking.NetworkState:

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.

Detailed Description

Network state.

This is a native class.

Member Function Documentation

◆ addValue()

void Dragengine.Networking.NetworkState.addValue ( NetworkStateValueType type,
NetworkStateValueFormat format )

Add value.

Parameters
typeType of value to add.
formatFormat to use. Has to be non-null for these types:
  • NetworkStateValueType.integer
  • NetworkStateValueType.floating
  • NetworkStateValueType.point2
  • NetworkStateValueType.point3
  • NetworkStateValueType.vector2
  • NetworkStateValueType.vector3
For all other types this parameter is not used.

References addValue().

Referenced by addValue().

◆ getReadOnly()

bool Dragengine.Networking.NetworkState.getReadOnly ( )

Network state is read only.

References getReadOnly().

Referenced by getReadOnly().

◆ getStateListener()

NetworkStateListener Dragengine.Networking.NetworkState.getStateListener ( )

State listener or null if not set.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References setValueQuaternionAt().

Referenced by setStateListener().

◆ getValueCount()

int Dragengine.Networking.NetworkState.getValueCount ( )

Nnumber of values.

References getValueCount().

Referenced by getValueCount().

◆ getValueDataAt()

void Dragengine.Networking.NetworkState.getValueDataAt ( int index,
MemoryFile data )

Value of data value at index.

Version
1.13
Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Value is read into the provided memory file.

References getValueDVector3At().

Referenced by setValuePoint2At().

◆ getValueDVector3At()

DVector Dragengine.Networking.NetworkState.getValueDVector3At ( int index)

Value of dvector-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Referenced by getValueDataAt().

◆ getValueFloatAt()

float Dragengine.Networking.NetworkState.getValueFloatAt ( int index)

Value of float value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueIntAt().

Referenced by getValueStringAt().

◆ getValueFormatAt()

NetworkStateValueFormat Dragengine.Networking.NetworkState.getValueFormatAt ( int index)

format of value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueFormatAt().

Referenced by getValueFormatAt().

◆ getValueIntAt()

int Dragengine.Networking.NetworkState.getValueIntAt ( int index)

Value of integer value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Referenced by getValueFloatAt().

◆ getValuePoint2At()

Point Dragengine.Networking.NetworkState.getValuePoint2At ( int index)

Value of point-2 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Referenced by getValueVector2At().

◆ getValuePoint3At()

Point3 Dragengine.Networking.NetworkState.getValuePoint3At ( int index)

Value of point-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueStringAt().

Referenced by getValueVector3At().

◆ getValuePrecisionAt()

float Dragengine.Networking.NetworkState.getValuePrecisionAt ( int index)

Precision of floating point based value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().
EInvalidParamValue at index is not VALUE_FLOAT, VALUE_QUATERNION, VALUE_VECTOR2 or VALUE_VECTOR3

References setValueVector3At().

Referenced by setStateListener().

◆ getValueQuaternionAt()

Quaternion Dragengine.Networking.NetworkState.getValueQuaternionAt ( int index)

Value of quaternion value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueVector2At(), and getValueVector3At().

Referenced by setValueFloatAt().

◆ getValueStringAt()

String Dragengine.Networking.NetworkState.getValueStringAt ( int index)

Value of string value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueFloatAt().

Referenced by getValuePoint3At().

◆ getValueVector2At()

Vector2 Dragengine.Networking.NetworkState.getValueVector2At ( int index)

Value of vector-2 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValuePoint2At().

Referenced by getValueQuaternionAt().

◆ getValueVector3At()

Vector Dragengine.Networking.NetworkState.getValueVector3At ( int index)

Value of vector-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValuePoint3At().

Referenced by getValueQuaternionAt().

◆ new()

NetworkState Dragengine.Networking.NetworkState.new ( )

Create network state.

References new().

Referenced by new().

◆ setStateListener()

void Dragengine.Networking.NetworkState.setStateListener ( NetworkStateListener listener)

Set state listener or null if not set.

References getStateListener(), getValuePrecisionAt(), setStateListener(), setValueDataAt(), and setValuePrecisionAt().

Referenced by setStateListener().

◆ setValueDataAt()

void Dragengine.Networking.NetworkState.setValueDataAt ( int index,
MemoryFile data )

Set value of data value at index.

Version
1.13
Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References setValuePoint3At(), and setValueVector2At().

Referenced by setStateListener().

◆ setValueDVector3At()

void Dragengine.Networking.NetworkState.setValueDVector3At ( int index,
DVector value )

Set value of dvector-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Referenced by setValuePrecisionAt().

◆ setValueFloatAt()

void Dragengine.Networking.NetworkState.setValueFloatAt ( int index,
float value )

Set value of float value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueQuaternionAt().

Referenced by setValueVector2At().

◆ setValueIntAt()

void Dragengine.Networking.NetworkState.setValueIntAt ( int index,
int value )

Set value of integer value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Referenced by setValuePoint3At().

◆ setValuePoint2At()

void Dragengine.Networking.NetworkState.setValuePoint2At ( int index,
Point value )

Set value of point-2 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References getValueDataAt().

Referenced by setValueQuaternionAt().

◆ setValuePoint3At()

void Dragengine.Networking.NetworkState.setValuePoint3At ( int index,
Point3 value )

Set value of point-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References setValueIntAt().

Referenced by setValueDataAt().

◆ setValuePrecisionAt()

void Dragengine.Networking.NetworkState.setValuePrecisionAt ( int index,
float precision )

Set precision of floating point based value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().
EInvalidParamValue at index is not VALUE_FLOAT, VALUE_QUATERNION, VALUE_VECTOR2 or VALUE_VECTOR3

References setValueDVector3At().

Referenced by setStateListener().

◆ setValueQuaternionAt()

void Dragengine.Networking.NetworkState.setValueQuaternionAt ( int index,
Quaternion value )

Set value of quaternion value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References setValuePoint2At().

Referenced by getStateListener().

◆ setValueStringAt()

void Dragengine.Networking.NetworkState.setValueStringAt ( int index,
String value )

Set value of string value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Referenced by setValueVector3At().

◆ setValueVector2At()

void Dragengine.Networking.NetworkState.setValueVector2At ( int index,
Vector2 value )

Set value of vector-2 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References setValueFloatAt().

Referenced by setValueDataAt().

◆ setValueVector3At()

void Dragengine.Networking.NetworkState.setValueVector3At ( int index,
Vector value )

Set value of vector-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

References setValueStringAt().

Referenced by getValuePrecisionAt().


The documentation for this class was generated from the following file: