mirror of https://github.com/axmolengine/axmol.git
This commit is contained in:
parent
97d6aaf296
commit
d9b3967daa
|
@ -25,19 +25,19 @@ THE SOFTWARE.
|
||||||
#ifndef __COCOS2D_DEFINE_H__
|
#ifndef __COCOS2D_DEFINE_H__
|
||||||
#define __COCOS2D_DEFINE_H__
|
#define __COCOS2D_DEFINE_H__
|
||||||
|
|
||||||
#define GET_VARIABLE(varType, varName)\
|
#define GET_VARIABLE(varType, varName, funName)\
|
||||||
public inline varType get##varName() { return varName; };
|
public inline varType get##funName() { return varName; };
|
||||||
|
|
||||||
#define SET_VARIABLE(varType, varName)\
|
#define SET_VARIABLE(varType, varName, funName)\
|
||||||
public inline void set##varName(varType funVar) { varName = funVar; };
|
public inline void set##funName(varType funVar) { varName = funVar; };
|
||||||
|
|
||||||
#define VAR_PROPERTY_READONLY(varType, varName)\
|
#define VAR_PROPERTY_READONLY(varType, varName, funName)\
|
||||||
protected varType m_##varName;\
|
protected varType varName;\
|
||||||
GET_VARIABLE(varType, varName)
|
GET_VARIABLE(varType, varName, funName)
|
||||||
|
|
||||||
#define VAR_PROPERTY_READWRITE(varType, varName)\
|
#define VAR_PROPERTY_READWRITE(varType, varName, funName)\
|
||||||
protected varType m_##varName;\
|
protected varType varName;\
|
||||||
GET_VARIABLE(varType, varName)\
|
GET_VARIABLE(varType, varName, funName)\
|
||||||
SET_VARIABLE(varTYPE, varName)
|
SET_VARIABLE(varTYPE, varName, funName)
|
||||||
|
|
||||||
#endif // __COCOS2D_DEFINE_H__
|
#endif // __COCOS2D_DEFINE_H__
|
Loading…
Reference in New Issue