cocos2d-x  2.2.6
 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 (CCObject *pTarget, const char *pMemberVariableName, CCNode *pNode)=0
 The callback function of assigning member variable. More...
 
virtual bool onAssignCCBCustomProperty (CCObject *pTarget, const char *pMemberVariableName, CCBValue *pCCBValue)
 The callback function of assigning custom properties. More...
 

Constructor & Destructor Documentation

virtual ~CCBMemberVariableAssigner ( )
inlinevirtual

Member Function Documentation

virtual bool
onAssignCCBCustomProperty
( CCObject pTarget,
const char *  pMemberVariableName,
CCBValue pCCBValue 
)
inlinevirtual

The callback function of assigning custom properties.

Note
The member variable must be Integer, Float, Boolean or String.
Parameters
pTargetThe custom class.
pMemberVariableNameThe name of the member variable.
pValueThe value of the property.
Returns
Whether the assignment was successful.
virtual bool
onAssignCCBMemberVariable
( CCObject pTarget,
const char *  pMemberVariableName,
CCNode pNode 
)
pure virtual

The callback function of assigning member variable.

Note
The member variable must be CCNode or its subclass.
Parameters
pTargetThe custom class.
pMemberVariableNameThe name of the member variable.
pNodeThe member variable.
Returns
Whether the assignment was successful.

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