2012-04-24 15:02:18 +08:00
|
|
|
|
|
|
|
#ifndef __CCEVENT_TYPE_H__
|
|
|
|
#define __CCEVENT_TYPE_H__
|
|
|
|
|
|
|
|
/**
|
2013-06-20 14:13:12 +08:00
|
|
|
* This header is used for defining event types using in NotificationCenter
|
2012-04-24 15:02:18 +08:00
|
|
|
*/
|
|
|
|
|
2012-06-14 18:37:57 +08:00
|
|
|
// The application will come to foreground.
|
|
|
|
// This message is used for reloading resources before come to foreground on Android.
|
|
|
|
// This message is posted in main.cpp.
|
2012-04-24 15:02:18 +08:00
|
|
|
#define EVNET_COME_TO_FOREGROUND "event_come_to_foreground"
|
|
|
|
|
2012-06-14 18:37:57 +08:00
|
|
|
// The application will come to background.
|
2013-06-20 14:13:12 +08:00
|
|
|
// This message is used for doing something before coming to background, such as save RenderTexture.
|
2012-06-14 18:37:57 +08:00
|
|
|
// This message is posted in cocos2dx/platform/android/jni/MessageJni.cpp.
|
|
|
|
#define EVENT_COME_TO_BACKGROUND "event_come_to_background"
|
|
|
|
|
2012-04-24 15:02:18 +08:00
|
|
|
#endif // __CCEVENT_TYPE_H__
|