Packagecom.smartfoxserver.v2.entities.variables
Classpublic class MMOItemVariable
InheritanceMMOItemVariable Inheritance BaseVariable Inheritance Object
Implements IMMOItemVariable

The MMOItemVariable object represents a SmartFoxServer MMOItem Variable entity on the client. It 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: 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.

See also

MMOItem
MMORoom


Public Properties
 PropertyDefined By
 Inheritedname : String
[read-only] Indicates the name of this variable.
BaseVariable
 Inheritedtype : String
[read-only] Indicates the type of this variable.
BaseVariable
Public Methods
 MethodDefined By
 Inherited
getBoolValue():Boolean
Retrieves the value of a boolean variable.
BaseVariable
 Inherited
Retrieves the value of a numeric variable.
BaseVariable
 Inherited
Retrieves the value of an integer variable.
BaseVariable
 Inherited
Retrieves the value of a SFSArray variable.
BaseVariable
 Inherited
Retrieves the value of a SFSObject variable.
BaseVariable
 Inherited
Retrieves the value of a string variable.
BaseVariable
 Inherited
Retrieves the untyped value of this variable.
BaseVariable
 Inherited
isNull():Boolean
Indicates if the variable is null.
BaseVariable
  
toString():String
Returns a string that contains the MMOItem Variable name, type and value.
MMOItemVariable
Method Detail
toString()method
public function toString():String

Returns a string that contains the MMOItem Variable name, type and value.

Returns
String — The string representation of the MMOItemVariable object.