axmol/tools/tolua++/CCNotificationCenter.pkg

26 lines
649 B
Plaintext
Raw Normal View History

class CCNotificationCenter : public CCObject
{
2013-05-24 11:42:27 +08:00
CCNotificationCenter();
~CCNotificationCenter();
static CCNotificationCenter *sharedNotificationCenter(void);
2013-05-24 11:42:27 +08:00
static void purgeNotificationCenter(void);
int removeAllObservers(CCObject *target);
void registerScriptObserver(CCObject *target,LUA_FUNCTION funcID,const char* name);
void unregisterScriptObserver(CCObject *target,const char* name);
void postNotification(const char *name);
2013-05-24 11:42:27 +08:00
void postNotification(const char *name, CCObject *object);
int getScriptHandler();
int getObserverHandlerByName(const char* name);
};