WHY_CPP  0.1
lifecycle.cpp
1 #include <whycpp/lifecycle.h>
2 #include "../context.h"
3 #include "../holders/lifecycle_holder.h"
4 
5 void PauseApp(Context &context) {
6  context.Get<LifecycleHolder>()->SetPaused(false);
7 }
8 
9 void ResumeApp(Context &context) {
10  context.Get<LifecycleHolder>()->SetPaused(true);
11 }
12 
13 void ExitApp(Context &context) {
14  context.Get<LifecycleHolder>()->SetQuit(true);
15 }
void ExitApp(Context &context)
Definition: lifecycle.cpp:13
void ResumeApp(Context &context)
Definition: lifecycle.cpp:9
void PauseApp(Context &context)
Definition: lifecycle.cpp:5