1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
-
- #ifndef __TRIGGEREVENT_H__
- #define __TRIGGEREVENT_H__
- #include "editor-support/cocostudio/CocoStudio.h"
- #include "base/ObjectFactory.h"
- #include "editor-support/cocostudio/TriggerObj.h"
- #include "editor-support/cocostudio/TriggerMng.h"
- #include "editor-support/cocostudio/CocosStudioExport.h"
- #define DECLARE_CLASS_INFO \
- public: \
- static cocos2d::ObjectFactory::TInfo Type; \
- static cocos2d::Ref* createInstance(void); \
-
- #define IMPLEMENT_CLASS_INFO(className) \
- cocos2d::Ref* className::createInstance(void) \
- { \
- auto ret = new (std::nothrow) className; \
- ret->autorelease(); \
- return ret; \
- } \
- cocos2d::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \
- void CC_STUDIO_DLL sendEvent(unsigned int event);
- #endif
|