66 if (character ==
nullptr)
79 const int hairstyle,
const int hairColor,
80 const unsigned char race,
82 const STD_VECTOR<int> &stats
A_UNUSED)
86 outMsg.writeString(name, 24,
"login");
89 outMsg.writeInt8(
CAST_U8(slot),
"slot");
90 outMsg.writeInt16(
CAST_S16(hairColor),
"hair color");
91 outMsg.writeInt16(
CAST_S16(hairstyle),
"hair style");
93 outMsg.writeInt16(
CAST_S16(race),
"race");
101 outMsg.writeInt8(sex,
"gender");
104 outMsg.writeInt16(
CAST_S16(look),
"look");
110 outMsg.writeInt8(
CAST_U8(slot),
"slot");
111 outMsg.writeInt16(
CAST_S16(hairColor),
"hair color");
112 outMsg.writeInt16(
CAST_S16(hairstyle),
"hair style");
113 outMsg.writeInt32(
CAST_S16(0),
"starting job id");
119 outMsg.writeInt8(sex,
"gender");
123 outMsg.writeInt8(
CAST_U8(slot),
"slot");
124 outMsg.writeInt16(
CAST_S16(hairColor),
"hair color");
125 outMsg.writeInt16(
CAST_S16(hairstyle),
"hair style");
131 for (
int i = 0; i < 6; i++)
132 outMsg.writeInt8(
CAST_U8(5),
"stat");
134 outMsg.writeInt8(
CAST_U8(slot),
"slot");
135 outMsg.writeInt16(
CAST_S16(hairColor),
"hair color");
136 outMsg.writeInt16(
CAST_S16(hairstyle),
"hair style");
142 const std::string &email)
const
144 if (character ==
nullptr)
154 outMsg.writeString(email, 40,
"email");
161 outMsg.writeInt8(1,
"flag");
175 outMsg.writeBeingId(token.
account_ID,
"account id");
176 outMsg.writeInt32(token.
session_ID1,
"session id1");
177 outMsg.writeInt32(token.
session_ID2,
"session id2");
202 const std::string &pin)
const
205 outMsg.writeBeingId(accountId,
"account id");
206 outMsg.writeString(pin, 4,
"encrypted pin");
210 const std::string &pin)
const
213 outMsg.writeBeingId(accountId,
"account id");
214 outMsg.writeString(pin, 4,
"encrypted pin");
218 const std::string &oldPin,
219 const std::string &newPin)
const
222 outMsg.writeBeingId(accountId,
"account id");
223 outMsg.writeString(oldPin, 4,
"old encrypted pin");
224 outMsg.writeString(newPin, 4,
"new encrypted pin");
228 const std::string &newName)
const
233 outMsg.writeBeingId(
id,
"char id");
234 outMsg.writeString(newName, 24,
"name");
238 const int newSlot)
const
241 outMsg.writeInt16(
CAST_S16(oldSlot),
"old slot");
242 outMsg.writeInt16(
CAST_S16(newSlot),
"new slot");
243 outMsg.writeInt16(0,
"unused");
249 outMsg.writeInt32(0,
"unused");
const BeingId BeingId_zero
Net::CharServerHandler * charServerHandler
static uint8_t genderToInt(const GenderT sex) A_CONST
void setDefaultGender(const GenderT gender)
void setAttributes(const StringVect &labels, int available, const int min, const int max)
void changeSlot(const int oldSlot, const int newSlot) const
void newCharacter(const std::string &name, const int slot, const GenderT gender, const int hairstyle, const int hairColor, const unsigned char race, const uint16_t look, const std::vector< int > &stats) const
void chooseCharacter(Net::Character *const character) const
void renameCharacter(const BeingId id, const std::string &newName) const
void changePincode(const BeingId accountId, const std::string &oldPin, const std::string &newPin) const
unsigned int hatSprite() const A_CONST
void sendCheckPincode(const BeingId accountId, const std::string &pin) const
void deleteCharacter(Net::Character *const character, const std::string &email) const
void setNewPincode(const BeingId accountId, const std::string &pin) const
void setCharCreateDialog(CharCreateDialog *const window) const
void switchCharacter() const
static Network * mInstance
bool connect(const ServerInfo &server)
static Net::Character * mSelectedCharacter
static CharSelectDialog * mCharSelectDialog
static CharCreateDialog * mCharCreateDialog
virtual bool haveCreateCharGender() const =0
virtual bool haveRaceSelection() const =0
virtual bool haveLookSelection() const =0
#define CLIENT_PROTOCOL_VERSION
Net::LoginHandler * loginHandler
#define createOutPacket(name)
Net::ServerFeatures * serverFeatures
std::vector< std::string > StringVect