feat(net): handle connect event in NetClient

This commit is contained in:
fallenoak 2023-02-26 13:03:16 -06:00
parent 431ed626c9
commit 2a799ea0d2
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 1 deletions

View File

@ -1171,6 +1171,7 @@ enum NETSTATE {
NS_INITIALIZED = 2,
NS_STATE_3 = 3,
NS_CONNECTING = 4,
NS_CONNECTED = 5,
};
enum WOW_CONN_STATE {

View File

@ -180,7 +180,12 @@ int32_t NetClient::HandleCantConnect() {
}
int32_t NetClient::HandleConnect() {
// TODO
// TODO push obj mgr
this->m_netState = NS_CONNECTED;
// TODO pop obj mgr
return 1;
}