61 const uint8_t b1 =
msg.readUInt8(
"b1");
62 const uint8_t b2 =
msg.readUInt8(
"b2");
63 const uint8_t b3 =
msg.readUInt8(
"b3");
67 const unsigned int options =
msg.readInt32(
"options");
75 const unsigned int options =
msg.readInt32(
"options");
83 const unsigned int options =
msg.readInt32(
"options");
105 const uint8_t errMsg =
msg.readUInt8(
"result code");
119 _(
"Account was not found. Please re-login.");
140 msg.readInt16(
"len");
144 const int worldCount = (
msg.getLength() - 47) / 32;
149 msg.readInt32(
"old ip");
151 msg.readInt16(
"unused");
155 msg.readUInt8(
"gender") & 3U));
157 for (
int i = 0; i < worldCount; i++)
162 world->
port =
msg.readInt16(
"port");
163 world->
name =
msg.readString(20,
"name");
167 msg.readInt16(
"maintenance");
168 msg.readInt16(
"new");
170 logger->
log(
"Network: Server: %s (%s:%d)", world->
name.c_str(),
static GenderT intToGender(const uint8_t sex) A_CONST
void setState(const StateT state)
void setValue(const std::string &key, const std::string &value)
void log(const char *const log_text,...)
virtual void clearWorlds() const =0
Net::LoginHandler * loginHandler
bool msg(InputEvent &event)
bool mRegistrationEnabled
void processLoginData(Net::MessageIn &msg)
void processCharPasswordResponse(Net::MessageIn &msg)
void processServerVersion(Net::MessageIn &msg)
const char * ipToString(const uint32_t address)
unsigned int tmwServerVersion