MMOItemVariable

Represents a SmartFoxServer MMOItem Variable entity on the client.


An MMOItem Variable is a custom value attached to an MMOItem object that gets automatically synchronized between client and server on every change, provided that the MMOItem is inside the Area of Interest of the current User in a MMORoom.

Note that MMOItem Variables behave exactly like User Variables and support the same data types, but they can be created, updated and deleted on the server side only.

Extends

Members

(readonly) isNull :boolean

Indicates whether the Variable has a null value.
Type:
  • boolean

(readonly) name :string

Name of the Variable.
Type:
  • string

(readonly) type :string

Type of the Variable.

Returned value is the name of one of the types defined in the VariableType class.

Type:
  • string

(readonly) value :*

Value of the Variable.
Type:
  • *

Methods

toString() → {string}

Returns a string containing the MMOItem Variable type, name and value.
Returns:
The string representation of the MMOItemVariable object.
Type: 
string