mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
Restructure event handling
This commit is contained in:
@@ -12,7 +12,9 @@ class CIOWin;
|
||||
enum class EArchMsgTarget
|
||||
{
|
||||
IOWinManager = 0,
|
||||
Game = 1
|
||||
Game = 1,
|
||||
/* PathShagged targets, we start at 255 */
|
||||
ArchitectureSupport = 255,
|
||||
};
|
||||
|
||||
enum class EArchMsgType
|
||||
@@ -28,6 +30,8 @@ enum class EArchMsgType
|
||||
QuitGameplay = 8,
|
||||
UpdateBegin = 10,
|
||||
FrameBegin = 11,
|
||||
/* PathShagged messages, we start at 255 */
|
||||
ApplicationExit = 255,
|
||||
};
|
||||
|
||||
struct IArchMsgParm
|
||||
@@ -143,6 +147,11 @@ public:
|
||||
{
|
||||
return *msg.GetParm<CArchMsgParmVoidPtr>();
|
||||
}
|
||||
/* PathShagged Messages */
|
||||
static CArchitectureMessage CreateApplicationExit(EArchMsgTarget target)
|
||||
{
|
||||
return CArchitectureMessage(target, EArchMsgType::ApplicationExit, new CArchMsgParmNull());
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user