feat(connection): implement character deletion message handlers

This commit is contained in:
Tristan Cormier authored and fallenoak committed 2026-01-11 15:57:29 -06:00
1 parent 68ab5ccced
commit bd0d7c63d2
4 files changed
+17 -1

No files matched your search

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