68 outMsg.writeString(receiver, 24,
"receiver name");
72 const int amount)
const
82 outMsg.writeInt16(
CAST_S16(amount),
"amount");
86 const int amount)
const
93 outMsg.writeInt16(
CAST_S16(amount),
"amount");
97 const std::string &title,
98 const std::string &body,
99 const int64_t &money)
const
107 const int titleSz =
CAST_S32(title.size()) + 1;
108 const int bodySz =
CAST_S32(body.size()) + 1;
109 int32_t sz = 2 + 2 + 24 + 24 + 8 + 2 + 2 + titleSz + bodySz;
119 outMsg.writeInt16(
CAST_S16(sz),
"len");
120 outMsg.writeString(to, 24,
"to");
121 outMsg.writeString(from, 24,
"from");
122 outMsg.writeInt64(money,
"money");
123 outMsg.writeInt16(
CAST_S16(titleSz),
"title len");
124 outMsg.writeInt16(
CAST_S16(bodySz),
"body len");
126 outMsg.writeInt32(0,
"to char id");
127 outMsg.writeString(title, titleSz,
"title");
128 outMsg.writeString(body, bodySz,
"body");
133 const std::string &to,
134 const std::string &title,
135 const std::string &body,
136 const int64_t &money)
const
149 const int64_t mailId)
const
154 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
155 outMsg.writeInt64(mailId,
"mail id");
159 const int64_t mailId)
const
164 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
165 outMsg.writeInt64(mailId,
"mail id");
169 const int64_t mailId)
const
174 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
175 outMsg.writeInt64(mailId,
"mail id");
179 const int64_t mailId)
const
184 outMsg.writeInt64(mailId,
"mail id");
185 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
189 const int64_t mailId)
const
194 outMsg.writeInt64(mailId,
"mail id");
195 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
199 const int64_t mailId)
const
206 outMsg.writeInt64(mailId,
"mail id");
207 outMsg.writeInt32(0,
"unknown 1");
208 outMsg.writeInt32(0,
"unknown 2");
209 outMsg.writeInt32(0,
"unknown 3");
210 outMsg.writeInt32(0,
"unknown 4");
214 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
215 outMsg.writeInt64(mailId,
"mail id");
226 outMsg.writeInt64(0,
"char mail id");
227 outMsg.writeInt64(0,
"return mail id");
228 outMsg.writeInt64(0,
"account mail id");
232 outMsg.writeInt8(
toInt(openType, int8_t),
"open type");
233 outMsg.writeInt64(0,
"mail id");
256 outMsg.writeString(name, 24,
"name");
#define reportAlways(...)
const std::string & getName() const
void requestMoney(const MailOpenTypeT openType, const int64_t mailId) const
void removeItem(const int index, const int amount) const
void queueCheckName(const MailQueueTypeT type, const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const
void nextPage(const MailOpenTypeT openType, const int64_t mailId) const
void readMail(const MailOpenTypeT openType, const int64_t mailId) const
void cancelWriteMail() const
void openMailBox(const MailOpenTypeT openType) const
std::string getCheckedName() const
void addItem(const Item *const item, const int amount) const
void deleteMail(const MailOpenTypeT openType, const int64_t mailId) const
void openWriteMail(const std::string &receiver) const
void sendMail(const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const
void requestItems(const MailOpenTypeT openType, const int64_t mailId) const
void refreshMailList(const MailOpenTypeT openType, const int64_t mailId) const
void requestCheckName(const std::string &name) const
void closeMailBox() const
static const int INVENTORY_OFFSET
LocalPlayer * localPlayer
Net::Mail2Handler * mail2Handler
MailOpenType ::T MailOpenTypeT
MailQueueType ::T MailQueueTypeT
#define createOutPacket(name)
std::queue< MailQueue * > mMailQueue