24 #ifndef NET_MESSAGEOUT_H
25 #define NET_MESSAGEOUT_H
37 #define createOutPacket(name) MessageOut outMsg(name); \
38 outMsg.writeInt16(CAST_S16(name), #name)
54 virtual void writeInt8(
const int8_t value,
55 const char *
const str);
59 const char *
const str);
63 const char *
const str);
66 const char *
const str);
69 const char *
const str);
72 const char *
const str);
76 unsigned char direction,
77 const char *
const str);
85 const char *
const str);
93 const char *
const str);
96 const char *
const str);
unsigned int getDataSize() const
static unsigned char toServerDirection(unsigned char direction) A_CONST
const char * getData() const
void writeInt64(const int64_t value, const char *const str)
virtual void expand(size_t size) const =0
void writeInt32(const int32_t value, const char *const str)
void writeInt16(const int16_t value, const char *const str)
virtual void writeInt8(const int8_t value, const char *const str)
void writeStringNoLog(const std::string &string, int length, const char *const str)
void writeString(const std::string &string, int length, const char *const str)
void writeCoordinates(const uint16_t x, const uint16_t y, unsigned char direction, const char *const str)
MessageOut(const int16_t id)
void writeItemId(const int32_t value, const char *const str)
void writeBeingId(const BeingId value, const char *const str)
void writeFloat(const float value, const char *const str)
#define A_DELETE_COPY(func)