mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(connection): implement character creation message handlers (#166)
Co-authored-by: fallenoak <git@fallenoak.me>
This commit is contained in:
1 parent
fa98bbc1f0
commit
6b7abe3c03
4 files changed
+17
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user