VariableType

Valid types that can be passed to User and Room Variable constructors.

Members

(static, constant) BOOLEAN :number

Variable type is boolean.
Type:
  • number

(static, constant) BYTE :number

Variable type is number (specifically a byte).
Type:
  • number

(static, constant) DOUBLE :number

Variable type is number (specifically a double).
Type:
  • number

(static, constant) FLOAT :number

Variable type is number (specifically a float).
Type:
  • number

(static, constant) INT :number

Variable type is number (specifically an integer).
Type:
  • number

(static, constant) LONG :bigint

Variable type is BigInt.

IMPORTANT: in this API, long integers are represented by BigInt values, but SmartFoxServer supports long integers up to 64-bit signed. Make sure to take this limitation (and others, see BigInt documentation) into account when dealing with long integers.

Type:
  • bigint

(static, constant) NULL :number

Variable is null.
Type:
  • number

(static, constant) SFSARRAY :number

Variable type is SFSArray.
Type:
  • number

(static, constant) SFSOBJECT :number

Variable type is SFSObject.
Type:
  • number

(static, constant) SHORT :number

Variable type is number (specifically an short).
Type:
  • number

(static, constant) STRING :number

Variable type is string.
Type:
  • number

(static, constant) VECTOR2 :number

Variable type is SFSVector2.
Type:
  • number

(static, constant) VECTOR3 :number

Variable type is SFSVector3.
Type:
  • number