axmol/tools/tolua++/CCNotificationCenter.pkg

25 lines
615 B
Plaintext

class CCNotificationCenter : public CCObject
{
CCNotificationCenter();
~CCNotificationCenter();
static CCNotificationCenter* getInstance();
static void destroyInstance();
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);
void postNotification(const char *name, CCObject *object);
int getScriptHandler();
int getObserverHandlerByName(const char* name);
};