From aa70c1c5bfa0998ac13e7b534d028f9cc67f0034 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 22 Sep 2025 20:17:38 -0700 Subject: [PATCH] feat(client): add ClientIdle --- src/client/Client.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 2f45ffa..4fdfb33 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -31,9 +31,21 @@ void BaseInitializeGlobal() { PropInitialize(); } +int32_t ClientIdle(const void* data, void* param) { + // TODO + // ClientGameTimeTickHandler(data, param); + // Player_C_ZoneUpdateHandler(data, param); + + return 1; +} + void ClientInitializeGame(uint32_t mapId, C3Vector position) { // TODO + EventRegister(EVENT_ID_IDLE, ClientIdle); + + // TODO + ClientServices::SetMessageHandler(SMSG_NOTIFICATION, NotifyHandler, nullptr); ClientServices::SetMessageHandler(SMSG_PLAYED_TIME, PlayedTimeHandler, nullptr); ClientServices::SetMessageHandler(SMSG_NEW_WORLD, NewWorldHandler, nullptr);