From b80218a8c1fafb174e3f05c0b51c61005531bf05 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 8 Mar 2023 16:48:05 -0400 Subject: TProtocol: Start work on `handle_command()`, and the command handlers Hopefully, we can make some good progress. Also, oof, I didn't realize that what I thought were `operator=()`, or a manual `assign()` function, was actually a copy ctor. --- include/pso/packet_classes.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/pso/packet_classes.h (limited to 'include/pso/packet_classes.h') diff --git a/include/pso/packet_classes.h b/include/pso/packet_classes.h new file mode 100644 index 0000000..87e0b06 --- /dev/null +++ b/include/pso/packet_classes.h @@ -0,0 +1,27 @@ +#ifndef PACKET_CLASSES_H +#define PACKET_CLASSES_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class TMessageBox { +public: + packet_header header; + TPlyGuildCardTag tag; + char mesg[512]; +public: + void bswap() { + header.bswap(); + tag.bswap(); + }; +}; + +#endif -- cgit v1.2.3-13-gbd6f