2
0
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:
2016-02-19 22:45:36 -08:00
parent 4bfe4026f2
commit 5229f95fb7
4 changed files with 112 additions and 63 deletions

View File

@@ -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());
}
};
}