void LoginHandler::registerAccount(LoginData *loginData) { std::string username = loginData->username; username.append((loginData->gender == GENDER_FEMALE) ? "_F" : "_M"); sendLoginRegister(username, loginData->password); }
void LoginHandler::loginAccount(LoginData *const loginData1) const { if (loginData1) { loginData1->resetCharacterSlots(); sendLoginRegister(loginData1->username, loginData1->password, ""); } }
void LoginHandler::loginAccount(LoginData *const loginData1) const { if (loginData1) { // Since we're attempting to use the tAthena protocol, // let's reset the character slots to the good value, // in case we just logged out a Manaserv server // with a different config. loginData1->resetCharacterSlots(); sendLoginRegister(loginData1->username, loginData1->password, ""); } }
void LoginHandler::registerAccount(const LoginData *const loginData1) const { if (!loginData1) return; std::string username = loginData1->username; switch (loginData1->gender) { case Gender::FEMALE: username.append("_F"); break; case Gender::MALE: username.append("_M"); break; case Gender::OTHER: username.append("_O"); break; case Gender::UNSPECIFIED: default: break; } sendLoginRegister(username, loginData1->password, loginData1->email); }
void LoginHandler::loginAccount(LoginData *loginData) { loginData->characterSlots = 9; sendLoginRegister(loginData->username, loginData->password); }