feat(connection): implement character creation message handlers (#166)

Co-authored-by: fallenoak <git@fallenoak.me>
This commit is contained in:
Tristan 'Natrist' Cormierandfallenoak authored and GitHub committed 2026-02-23 21:31:12 -06:00
1 parent fa98bbc1f0
commit 6b7abe3c03
4 files changed
+17 -1

No files matched your search

+10 -1
View File
@@ -20,7 +20,7 @@ int32_t RealmConnection::MessageHandler(void* param, NETMESSAGE msgId, uint32_t
}
case SMSG_CHAR_CREATE: {
// TODO
result = connection->CreateCharHandler(msgId, time, msg);
break;
}
@@ -294,6 +294,15 @@ int32_t RealmConnection::HandleCharEnum(uint32_t msgId, uint32_t time, CDataStor
return 1;
}
int32_t RealmConnection::CreateCharHandler(uint32_t msgId, uint32_t time, CDataStore* msg) {
uint8_t result;
msg->Get(result);
this->HandleCharacterCreate(result);
return 1;
}
int32_t RealmConnection::DeleteCharHandler(uint32_t msgId, uint32_t time, CDataStore* msg) {
uint8_t result;
msg->Get(result);