89 #include "net/tmwa/recvpackets.inc"
112 const unsigned int msgId =
readWord(0);
130 "Wrong packet %u 0x%x received. Exiting.",
141 logger->
log(
"Unhandled packet: %u 0x%x", msgId, msgId);
uint16_t readWord(const int pos) const
void log(const char *const log_text,...)
void safeError(const std::string &error_text) __attribute__((noreturn))
static Network * mInstance
static Network * instance()
bool msg(InputEvent &event)
static const unsigned int packet_lengths_size
static const unsigned int messagesSize
void(* PacketFuncPtr)(Net::MessageIn &msg)
#define BLOCK_START(name)
std::string strprintf(const char *const format,...)