cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCBMemberVariableAssigner Class Referenceabstract

#include <CCBMemberVariableAssigner.h>

Public Member Functions

virtual ~CCBMemberVariableAssigner ()
virtual bool onAssignCCBMemberVariable (cocos2d::Ref *target, const char *memberVariableName, cocos2d::Node *node)=0
 The callback function of assigning member variable. More...
 
virtual bool onAssignCCBCustomProperty (cocos2d::Ref *target, const char *memberVariableName, const cocos2d::Value &value)
 The callback function of assigning custom properties. More...
 

Constructor & Destructor Documentation

virtual ~CCBMemberVariableAssigner ( )
inlinevirtual

Member Function Documentation

virtual bool
onAssignCCBCustomProperty
( cocos2d::Ref target,
const char *  memberVariableName,
const cocos2d::Value value 
)
inlinevirtual

The callback function of assigning custom properties.

Note
The member variable must be Integer, Float, Boolean or String.
Parameters
targetThe custom class.
memberVariableNameThe name of the member variable.
valueThe value of the property.
Returns
Whether the assignment was successful.
var onAssignCCBCustomProperty ( var  target,
var  memberVariableName,
var  value 
)
inlinevirtual

The callback function of assigning custom properties.

Note
The member variable must be Integer, Float, Boolean or String.
Parameters
targetThe custom class.
memberVariableNameThe name of the member variable.
valueThe value of the property.
Returns
Whether the assignment was successful.
local onAssignCCBCustomProperty ( local  target,
local  memberVariableName,
local  value 
)
inlinevirtual

The callback function of assigning custom properties.

Note
The member variable must be Integer, Float, Boolean or String.
Parameters
targetThe custom class.
memberVariableNameThe name of the member variable.
valueThe value of the property.
Returns
Whether the assignment was successful.
virtual bool
onAssignCCBMemberVariable
( cocos2d::Ref target,
const char *  memberVariableName,
cocos2d::Node node 
)
pure virtual

The callback function of assigning member variable.

Note
The member variable must be Node or its subclass.
Parameters
targetThe custom class.
memberVariableNameThe name of the member variable.
nodeThe member variable.
Returns
Whether the assignment was successful.
var onAssignCCBMemberVariable ( var  target,
var  memberVariableName,
var  node 
)
pure virtual

The callback function of assigning member variable.

Note
The member variable must be Node or its subclass.
Parameters
targetThe custom class.
memberVariableNameThe name of the member variable.
nodeThe member variable.
Returns
Whether the assignment was successful.
local onAssignCCBMemberVariable ( local  target,
local  memberVariableName,
local  node 
)
pure virtual

The callback function of assigning member variable.

Note
The member variable must be Node or its subclass.
Parameters
targetThe custom class.
memberVariableNameThe name of the member variable.
nodeThe member variable.
Returns
Whether the assignment was successful.

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