mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-01 13:25:23 +00:00
20 lines
294 B
C
20 lines
294 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
namespace PortabilityLayer
|
||
|
|
{
|
||
|
|
struct IAppEventHandler
|
||
|
|
{
|
||
|
|
virtual void OnQuit() = 0;
|
||
|
|
};
|
||
|
|
|
||
|
|
class AppEventHandler
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
static IAppEventHandler *GetInstance();
|
||
|
|
static void SetInstance(IAppEventHandler *instance);
|
||
|
|
|
||
|
|
private:
|
||
|
|
static IAppEventHandler *ms_instance;
|
||
|
|
};
|
||
|
|
}
|