SmartFoxServer 2X C++ API
|
The MMOItemVariable object represents a SmartFoxServer MMOItem Variable entity on the client. More...
#include <MMOItemVariable.h>
Public Member Functions | |
MMOItemVariable (string name, boost::shared_ptr< void > val, long int type) | |
<exclude> | |
MMOItemVariable (string name, boost::shared_ptr< long int > val) | |
<exclude> | |
virtual boost::shared_ptr< string > | Name () |
Indicates the name of this variable. | |
virtual VariableType | Type () |
Indicates the type of this variable. | |
virtual boost::shared_ptr< void > | Value () |
Returns the untyped value of this variable. | |
virtual boost::shared_ptr< bool > | GetBoolValue () |
Retrieves the value of a boolean variable. | |
virtual boost::shared_ptr< long int > | GetIntValue () |
Retrieves the value of an integer variable. | |
virtual boost::shared_ptr< double > | GetDoubleValue () |
Retrieves the value of a double precision variable. | |
virtual boost::shared_ptr< string > | GetStringValue () |
Retrieves the value of a string variable. | |
virtual boost::shared_ptr< ISFSObject > | GetSFSObjectValue () |
Retrieves the value of a SFSObject variable. | |
virtual boost::shared_ptr< ISFSArray > | GetSFSArrayValue () |
Retrieves the value of a SFSArray variable. | |
virtual bool | IsNull () |
Indicates if the variable is null . | |
virtual boost::shared_ptr< ISFSArray > | ToSFSArray () |
<exclude> | |
boost::shared_ptr< string > | ToString () |
Returns a string that contains the MMOItem Variable name, type and value. More... | |
Public Member Functions inherited from Sfs2X::Entities::Variables::BaseVariable | |
BaseVariable (string name, boost::shared_ptr< void > val, long int type) | |
Creates a new BaseVariable instance. More... | |
BaseVariable (string name, boost::shared_ptr< long int > val) | |
Creates a new BaseVariable instance. More... | |
Static Public Member Functions | |
static boost::shared_ptr< IMMOItemVariable > | FromSFSArray (boost::shared_ptr< ISFSArray > sfsa) |
<exclude> | |
The MMOItemVariable object 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: 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.
boost::shared_ptr< string > Sfs2X::Entities::Variables::MMOItemVariable::ToString | ( | ) |
Returns a string that contains the MMOItem Variable name, type and value.