mirror of https://github.com/axmolengine/axmol.git
26 lines
649 B
Plaintext
26 lines
649 B
Plaintext
|
|
class CCNotificationCenter : public CCObject
|
|
{
|
|
CCNotificationCenter();
|
|
|
|
~CCNotificationCenter();
|
|
|
|
static CCNotificationCenter *sharedNotificationCenter(void);
|
|
|
|
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);
|
|
|
|
void postNotification(const char *name, CCObject *object);
|
|
|
|
int getScriptHandler();
|
|
|
|
int getObserverHandlerByName(const char* name);
|
|
};
|