summaryrefslogtreecommitdiff
path: root/src/pso/TPlyGuildCardTag.cpp
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-25 12:25:33 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-25 12:25:33 -0400
commit25e3c303b8f47785a0056077a66b7a77449ff827 (patch)
treef19aedf782acf4c78c238e26f735e6f7b89163a9 /src/pso/TPlyGuildCardTag.cpp
parente4af5aabc6b9b70b514e8c124dd766aa44dcab7a (diff)
TMenuList: Add `TMenuList`, and everything else that's needed to get it
working I feel this is a good starting point for working on the protocol related code.
Diffstat (limited to 'src/pso/TPlyGuildCardTag.cpp')
-rw-r--r--src/pso/TPlyGuildCardTag.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pso/TPlyGuildCardTag.cpp b/src/pso/TPlyGuildCardTag.cpp
new file mode 100644
index 0000000..079fcbc
--- /dev/null
+++ b/src/pso/TPlyGuildCardTag.cpp
@@ -0,0 +1,16 @@
+#include "pso/TPlyGuildCardTag.h"
+#include "pso/protocol.h"
+#include <global_types.h>
+
+void TPlyGuildCardTag::bswap() {
+ bswap_32(&guildcard_number);
+ bswap_16(&tag2);
+}
+
+TPlyGuildCardTag &TPlyGuildCardTag::operator=(const TPlyGuildCardTag &src) {
+ tag0 = src.tag0;
+ tag1 = src.tag1;
+ tag2 = src.tag2;
+ guildcard_number = src.guildcard_number;
+ return *this;
+}