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

#include <CCBMemberVariableAssigner.h>

Inheritance diagram for CCBMemberVariableAssigner:
CCBScriptCallbackProxy

Public Member Functions

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

Constructor & Destructor Documentation

virtual ~CCBMemberVariableAssigner ( )
inlinevirtual

Member Function Documentation

virtual bool
onAssignCCBCustomProperty
( cocos2d::Object 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::Object 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.

Implemented in CCBScriptCallbackProxy.

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.

Implemented in CCBScriptCallbackProxy.

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.

Implemented in CCBScriptCallbackProxy.


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