2023-01-09 07:49:49 -06:00
|
|
|
#include "net/login/LoginResponse.hpp"
|
2023-02-07 17:04:24 -06:00
|
|
|
#include "net/grunt/Grunt.hpp"
|
|
|
|
|
#include <storm/String.hpp>
|
2023-01-09 07:49:49 -06:00
|
|
|
|
2023-02-07 17:04:24 -06:00
|
|
|
void LoginResponse::UpdateLoginStatus(LOGIN_STATE state, LOGIN_RESULT result, const char* addrStr, uint16_t flags) {
|
2023-01-09 07:49:49 -06:00
|
|
|
this->m_loginState = state;
|
|
|
|
|
this->m_loginResult = result;
|
|
|
|
|
|
2023-02-07 17:04:24 -06:00
|
|
|
char stateStr[64];
|
2023-02-07 17:21:37 -06:00
|
|
|
SStrCopy(stateStr, Grunt::g_LoginStateStringNames[state], sizeof(stateStr));
|
2023-01-09 07:49:49 -06:00
|
|
|
|
2023-02-07 17:04:24 -06:00
|
|
|
char resultStr[64];
|
2023-02-07 17:21:37 -06:00
|
|
|
SStrCopy(resultStr, Grunt::g_LoginResultStringNames[result], sizeof(resultStr));
|
2023-02-07 17:04:24 -06:00
|
|
|
|
|
|
|
|
this->LoginServerStatus(state, result, addrStr, stateStr, resultStr, flags);
|
2023-01-09 07:49:49 -06:00
|
|
|
}
|