Skip to content

Commit

Permalink
ref-in NOTIFICATOR_APPLICATION_DID_BECOME_ACTIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Oct 30, 2023
1 parent cacbab7 commit 3c1a120
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 118 deletions.
12 changes: 6 additions & 6 deletions src/Frameworks/PythonFramework/GameScriptEmbedding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ namespace Mengine
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onOverFillrate" ), EVENT_GAME_OVER_FILLRATE, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onFrameEnd" ), EVENT_GAME_FRAME_END, _doc );

#if defined(MENGINE_PLATFORM_IOS)
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "oniOSApplicationDidBecomeActive" ), EVENT_GAME_IOS_APPLICATION_DID_BECOME_ACTIVE, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "oniOSApplicationWillEnterForeground" ), EVENT_GAME_IOS_APPLICATION_WILL_ENTER_FOREGROUND, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "oniOSApplicationDidEnterBackground" ), EVENT_GAME_IOS_APPLICATION_DID_ENTER_BACKGROUD, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "oniOSApplicationWillResignActive" ), EVENT_GAME_IOS_APPLICATION_WILL_RESIGN_ACTIVE, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "oniOSApplicationWillTerminate" ), EVENT_GAME_IOS_APPLICATION_WILL_TERMINATE, _doc );
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onApplicationDidBecomeActive" ), EVENT_GAME_APPLICATION_DID_BECOME_ACTIVE, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onApplicationWillEnterForeground" ), EVENT_GAME_APPLICATION_WILL_ENTER_FOREGROUND, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onApplicationDidEnterBackground" ), EVENT_GAME_APPLICATION_DID_ENTER_BACKGROUD, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onApplicationWillResignActive" ), EVENT_GAME_APPLICATION_WILL_RESIGN_ACTIVE, _doc );
Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onApplicationWillTerminate" ), EVENT_GAME_APPLICATION_WILL_TERMINATE, _doc );
#endif

Helper::registerPythonEventReceiverModule<PythonGameEventReceiver>( _kernel, py_module, game, STRINGIZE_STRING_LOCAL( "onAnalyticsEvent" ), EVENT_GAME_ANALYTICS_EVENT, _doc );
Expand Down
12 changes: 6 additions & 6 deletions src/Frameworks/PythonFramework/PythonGameEventReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,29 +305,29 @@ namespace Mengine
m_cb.call();
}
//////////////////////////////////////////////////////////////////////////
#if defined(MENGINE_PLATFORM_IOS)
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
//////////////////////////////////////////////////////////////////////////
void PythonGameEventReceiver::onGameiOSApplicationDidBecomeActive()
void PythonGameEventReceiver::onGameApplicationDidBecomeActive()
{
m_cb.call();
}
//////////////////////////////////////////////////////////////////////////
void PythonGameEventReceiver::onGameiOSApplicationWillEnterForeground()
void PythonGameEventReceiver::onGameApplicationWillEnterForeground()
{
m_cb.call();
}
//////////////////////////////////////////////////////////////////////////
void PythonGameEventReceiver::onGameiOSApplicationDidEnterBackground()
void PythonGameEventReceiver::onGameApplicationDidEnterBackground()
{
m_cb.call();
}
//////////////////////////////////////////////////////////////////////////
void PythonGameEventReceiver::onGameiOSApplicationWillResignActive()
void PythonGameEventReceiver::onGameApplicationWillResignActive()
{
m_cb.call();
}
//////////////////////////////////////////////////////////////////////////
void PythonGameEventReceiver::onGameiOSApplicationWillTerminate()
void PythonGameEventReceiver::onGameApplicationWillTerminate()
{
m_cb.call();
}
Expand Down
14 changes: 6 additions & 8 deletions src/Frameworks/PythonFramework/PythonGameEventReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@ namespace Mengine
bool onGameClose() override;
void onGameOverFillrate( double _fillrate, double _limit ) override;
void onGameFrameEnd() override;

#if defined(MENGINE_PLATFORM_IOS)
void onGameiOSApplicationDidBecomeActive() override;
void onGameiOSApplicationWillEnterForeground() override;
void onGameiOSApplicationDidEnterBackground() override;
void onGameiOSApplicationWillResignActive() override;
void onGameiOSApplicationWillTerminate() override;
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
void onGameApplicationDidBecomeActive() override;
void onGameApplicationWillEnterForeground() override;
void onGameApplicationDidEnterBackground() override;
void onGameApplicationWillResignActive() override;
void onGameApplicationWillTerminate() override;
#endif

void onGameAnalyticsEvent( const AnalyticsEventInterfacePtr & _event ) override;
void onGameAnalyticsScreenView( const ConstString & _screenType, const ConstString & _screenName ) override;
void onGameAnalyticsFlush() override;
Expand Down
36 changes: 17 additions & 19 deletions src/Interface/GameEventReceiverInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ namespace Mengine
EVENT_GAME_CLOSE,
EVENT_GAME_OVER_FILLRATE,
EVENT_GAME_FRAME_END,
#if defined(MENGINE_PLATFORM_IOS)
EVENT_GAME_IOS_APPLICATION_DID_BECOME_ACTIVE,
EVENT_GAME_IOS_APPLICATION_WILL_ENTER_FOREGROUND,
EVENT_GAME_IOS_APPLICATION_DID_ENTER_BACKGROUD,
EVENT_GAME_IOS_APPLICATION_WILL_RESIGN_ACTIVE,
EVENT_GAME_IOS_APPLICATION_WILL_TERMINATE,
#endif
EVENT_GAME_APPLICATION_DID_BECOME_ACTIVE,
EVENT_GAME_APPLICATION_WILL_ENTER_FOREGROUND,
EVENT_GAME_APPLICATION_DID_ENTER_BACKGROUD,
EVENT_GAME_APPLICATION_WILL_RESIGN_ACTIVE,
EVENT_GAME_APPLICATION_WILL_TERMINATE,
EVENT_GAME_ANALYTICS_EVENT,
EVENT_GAME_ANALYTICS_SCREENVIEW,
EVENT_GAME_ANALYTICS_FLUSH,
Expand Down Expand Up @@ -117,12 +115,12 @@ namespace Mengine
virtual bool onGameClose() = 0;
virtual void onGameOverFillrate( double _fillrate, double _limit ) = 0;
virtual void onGameFrameEnd() = 0;
#if defined(MENGINE_PLATFORM_IOS)
virtual void onGameiOSApplicationDidBecomeActive() = 0;
virtual void onGameiOSApplicationWillEnterForeground() = 0;
virtual void onGameiOSApplicationDidEnterBackground() = 0;
virtual void onGameiOSApplicationWillResignActive() = 0;
virtual void onGameiOSApplicationWillTerminate() = 0;
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
virtual void onGameApplicationDidBecomeActive() = 0;
virtual void onGameApplicationWillEnterForeground() = 0;
virtual void onGameApplicationDidEnterBackground() = 0;
virtual void onGameApplicationWillResignActive() = 0;
virtual void onGameApplicationWillTerminate() = 0;
#endif
virtual void onGameAnalyticsEvent( const AnalyticsEventInterfacePtr & _event ) = 0;
virtual void onGameAnalyticsScreenView( const ConstString & _screenType, const ConstString & _screenName ) = 0;
Expand Down Expand Up @@ -170,12 +168,12 @@ namespace Mengine
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_CLOSE );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_OVER_FILLRATE );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_FRAME_END );
#if defined(MENGINE_PLATFORM_IOS)
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_IOS_APPLICATION_DID_BECOME_ACTIVE );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_IOS_APPLICATION_WILL_ENTER_FOREGROUND );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_IOS_APPLICATION_DID_ENTER_BACKGROUD );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_IOS_APPLICATION_WILL_RESIGN_ACTIVE );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_IOS_APPLICATION_WILL_TERMINATE );
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_APPLICATION_DID_BECOME_ACTIVE );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_APPLICATION_WILL_ENTER_FOREGROUND );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_APPLICATION_DID_ENTER_BACKGROUD );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_APPLICATION_WILL_RESIGN_ACTIVE );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_APPLICATION_WILL_TERMINATE );
#endif
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_ANALYTICS_EVENT );
EVENTATION_TYPEID( GameEventReceiverInterface, EVENT_GAME_ANALYTICS_SCREENVIEW );
Expand Down
15 changes: 7 additions & 8 deletions src/Interface/NotificatorInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,13 @@ namespace Mengine
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_HTTP_REQUEST, HttpRequestId, const String & );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_HTTP_CANCEL, HttpRequestId );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_HTTP_RESPONSE, const HttpResponseInterfacePtr & );

#if defined(MENGINE_PLATFORM_IOS)
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_IOS_APPLICATION_DID_BECOME_ACTIVE );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_IOS_APPLICATION_WILL_ENTER_FOREGROUND );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_IOS_APPLICATION_DID_ENTER_BACKGROUD );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_IOS_APPLICATION_WILL_RESIGN_ACTIVE );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_IOS_APPLICATION_WILL_TERMINATE );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_IOS_APPLICATION_DID_RECEIVE_MEMORY_WARNING );
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_APPLICATION_DID_BECOME_ACTIVE );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_APPLICATION_WILL_ENTER_FOREGROUND );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_APPLICATION_DID_ENTER_BACKGROUD );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_APPLICATION_WILL_RESIGN_ACTIVE );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_APPLICATION_WILL_TERMINATE );
MENGINE_NOTIFICATOR_DECLARE( NOTIFICATOR_APPLICATION_DID_RECEIVE_MEMORY_WARNING );
#endif
MENGINE_NOTIFICATOR_DECLARE_END();
//////////////////////////////////////////////////////////////////////////
Expand Down
45 changes: 8 additions & 37 deletions src/Platforms/SDLPlatform/SDLPlatformService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3726,59 +3726,30 @@ namespace Mengine
{
shouldQuit = true;
}break;
#if defined(MENGINE_PLATFORM_IOS)
/*==================*/
/* Apple iOS events */
/*==================*/
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
case SDL_APP_TERMINATING:
{
/* Terminate the app.
Shut everything down before returning from this function.
*/

NOTIFICATION_NOTIFY( NOTIFICATOR_IOS_APPLICATION_WILL_TERMINATE );
NOTIFICATION_NOTIFY( NOTIFICATOR_APPLICATION_WILL_TERMINATE );
}break;
case SDL_APP_LOWMEMORY:
{
/* You will get this when your app is paused and iOS wants more memory.
Release as much memory as possible.
*/

NOTIFICATION_NOTIFY( NOTIFICATOR_IOS_APPLICATION_DID_RECEIVE_MEMORY_WARNING );
{
NOTIFICATION_NOTIFY( NOTIFICATOR_APPLICATION_DID_RECEIVE_MEMORY_WARNING );
}break;
case SDL_APP_WILLENTERBACKGROUND:
{
/* Prepare your app to go into the background. Stop loops, etc.
This gets called when the user hits the home button, or gets a call.
*/

NOTIFICATION_NOTIFY( NOTIFICATOR_IOS_APPLICATION_WILL_RESIGN_ACTIVE );
NOTIFICATION_NOTIFY( NOTIFICATOR_APPLICATION_WILL_RESIGN_ACTIVE );
}break;
case SDL_APP_DIDENTERBACKGROUND:
{
/* This will get called if the user accepted whatever sent your app to the background.
If the user got a phone call and canceled it, you'll instead get an SDL_APP_DIDENTERFOREGROUND event and restart your loops.
When you get this, you have 5 seconds to save all your state or the app will be terminated.
Your app is NOT active at this point.
*/

NOTIFICATION_NOTIFY( NOTIFICATOR_IOS_APPLICATION_DID_ENTER_BACKGROUD );
NOTIFICATION_NOTIFY( NOTIFICATOR_APPLICATION_DID_ENTER_BACKGROUD );
}break;
case SDL_APP_WILLENTERFOREGROUND:
{
/* This call happens when your app is coming back to the foreground.
Restore all your state here.
*/

NOTIFICATION_NOTIFY( NOTIFICATOR_IOS_APPLICATION_WILL_ENTER_FOREGROUND );
NOTIFICATION_NOTIFY( NOTIFICATOR_APPLICATION_WILL_ENTER_FOREGROUND );
}break;
case SDL_APP_DIDENTERFOREGROUND:
{
/* Restart your loops here.
Your app is interactive and getting CPU again.
*/

NOTIFICATION_NOTIFY( NOTIFICATOR_IOS_APPLICATION_DID_BECOME_ACTIVE );
NOTIFICATION_NOTIFY( NOTIFICATOR_APPLICATION_DID_BECOME_ACTIVE );
}break;
#endif
default:
Expand Down
56 changes: 28 additions & 28 deletions src/Services/GameService/GameService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ namespace Mengine

NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_TIME_FACTOR_CHANGE, &GameService::onTimeFactorChange_, MENGINE_DOCUMENT_FACTORABLE );

#if defined(MENGINE_PLATFORM_IOS)
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_IOS_APPLICATION_DID_BECOME_ACTIVE, &GameService::oniOSApplicationDidBecomeActive_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_IOS_APPLICATION_WILL_ENTER_FOREGROUND, &GameService::oniOSApplicationWillEnterForeground_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_IOS_APPLICATION_DID_ENTER_BACKGROUD, &GameService::oniOSApplicationDidEnterBackground_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_IOS_APPLICATION_WILL_RESIGN_ACTIVE, &GameService::oniOSApplicationWillResignActive_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_IOS_APPLICATION_WILL_TERMINATE, &GameService::oniOSApplicationWillTerminate_, MENGINE_DOCUMENT_FACTORABLE );
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_APPLICATION_DID_BECOME_ACTIVE, &GameService::onApplicationDidBecomeActive_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_APPLICATION_WILL_ENTER_FOREGROUND, &GameService::onApplicationWillEnterForeground_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_APPLICATION_DID_ENTER_BACKGROUD, &GameService::onApplicationDidEnterBackground_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_APPLICATION_WILL_RESIGN_ACTIVE, &GameService::onApplicationWillResignActive_, MENGINE_DOCUMENT_FACTORABLE );
NOTIFICATION_ADDOBSERVERMETHOD_THIS( NOTIFICATOR_APPLICATION_WILL_TERMINATE, &GameService::onApplicationWillTerminate_, MENGINE_DOCUMENT_FACTORABLE );
#endif

ANALYTICS_SERVICE()
Expand All @@ -80,12 +80,12 @@ namespace Mengine
{
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_TIME_FACTOR_CHANGE );

#if defined(MENGINE_PLATFORM_IOS)
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_IOS_APPLICATION_DID_BECOME_ACTIVE );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_IOS_APPLICATION_WILL_ENTER_FOREGROUND );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_IOS_APPLICATION_DID_ENTER_BACKGROUD );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_IOS_APPLICATION_WILL_RESIGN_ACTIVE );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_IOS_APPLICATION_WILL_TERMINATE );
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_APPLICATION_DID_BECOME_ACTIVE );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_APPLICATION_WILL_ENTER_FOREGROUND );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_APPLICATION_DID_ENTER_BACKGROUD );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_APPLICATION_WILL_RESIGN_ACTIVE );
NOTIFICATION_REMOVEOBSERVER_THIS( NOTIFICATOR_APPLICATION_WILL_TERMINATE );
#endif

ANALYTICS_SERVICE()
Expand Down Expand Up @@ -523,35 +523,35 @@ namespace Mengine
->onGameTimeFactor( _timeFactor );
}
//////////////////////////////////////////////////////////////////////////
#if defined(MENGINE_PLATFORM_IOS)
#if defined(MENGINE_PLATFORM_IOS) || defined(MENGINE_PLATFORM_ANDROID)
//////////////////////////////////////////////////////////////////////////
void GameService::oniOSApplicationDidBecomeActive_()
void GameService::onApplicationDidBecomeActive_()
{
EVENTABLE_METHOD( EVENT_GAME_IOS_APPLICATION_DID_BECOME_ACTIVE )
->onGameiOSApplicationDidBecomeActive();
EVENTABLE_METHOD( EVENT_GAME_APPLICATION_DID_BECOME_ACTIVE )
->onGameApplicationDidBecomeActive();
}
void GameService::oniOSApplicationWillEnterForeground_()
void GameService::onApplicationWillEnterForeground_()
{
EVENTABLE_METHOD( EVENT_GAME_IOS_APPLICATION_WILL_ENTER_FOREGROUND )
->onGameiOSApplicationWillEnterForeground();
EVENTABLE_METHOD( EVENT_GAME_APPLICATION_WILL_ENTER_FOREGROUND )
->onGameApplicationWillEnterForeground();
}
//////////////////////////////////////////////////////////////////////////
void GameService::oniOSApplicationDidEnterBackground_()
void GameService::onApplicationDidEnterBackground_()
{
EVENTABLE_METHOD( EVENT_GAME_IOS_APPLICATION_DID_ENTER_BACKGROUD )
->onGameiOSApplicationDidEnterBackground();
EVENTABLE_METHOD( EVENT_GAME_APPLICATION_DID_ENTER_BACKGROUD )
->onGameApplicationDidEnterBackground();
}
//////////////////////////////////////////////////////////////////////////
void GameService::oniOSApplicationWillResignActive_()
void GameService::onApplicationWillResignActive_()
{
EVENTABLE_METHOD( EVENT_GAME_IOS_APPLICATION_WILL_RESIGN_ACTIVE )
->onGameiOSApplicationWillResignActive();
EVENTABLE_METHOD( EVENT_GAME_APPLICATION_WILL_RESIGN_ACTIVE )
->onGameApplicationWillResignActive();
}
//////////////////////////////////////////////////////////////////////////
void GameService::oniOSApplicationWillTerminate_()
void GameService::onApplicationWillTerminate_()
{
EVENTABLE_METHOD( EVENT_GAME_IOS_APPLICATION_WILL_TERMINATE )
->onGameiOSApplicationWillTerminate();
EVENTABLE_METHOD( EVENT_GAME_APPLICATION_WILL_TERMINATE )
->onGameApplicationWillTerminate();
}
//////////////////////////////////////////////////////////////////////////
#endif
Expand Down
Loading

0 comments on commit 3c1a120

Please sign in to comment.