feat(client): register handlers in ClientInitializeGame

This commit is contained in:
fallenoak committed 2025-09-22 22:07:23 -05:00
1 parent 667e50bd67
commit ea7fda972e
7 files changed
+94 -7

No files matched your search

+7
View File
@@ -154,6 +154,13 @@ void ClientServices::SetAccountName(const char* accountName) {
SStrCopy(ClientServices::s_accountName, accountName, sizeof(ClientServices::s_accountName));
}
void ClientServices::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param) {
STORM_ASSERT(handler);
STORM_ASSERT(ClientServices::s_currentConnection);
ClientServices::s_currentConnection->SetMessageHandler(msgId, handler, param);
}
int32_t ClientServices::SetSelectedRealmInfo(int32_t a1) {
auto instance = ClientServices::GetInstance();