mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(net): handle connect event in NetClient
This commit is contained in:
parent
431ed626c9
commit
2a799ea0d2
2 changed files with 7 additions and 1 deletions
|
|
@ -1171,6 +1171,7 @@ enum NETSTATE {
|
|||
NS_INITIALIZED = 2,
|
||||
NS_STATE_3 = 3,
|
||||
NS_CONNECTING = 4,
|
||||
NS_CONNECTED = 5,
|
||||
};
|
||||
|
||||
enum WOW_CONN_STATE {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue