summaryrefslogtreecommitdiff
path: root/src/pso
diff options
context:
space:
mode:
Diffstat (limited to 'src/pso')
-rw-r--r--src/pso/TPlyGuildCardTag.cpp16
-rw-r--r--src/pso/protocol.cpp9
2 files changed, 25 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;
+}
diff --git a/src/pso/protocol.cpp b/src/pso/protocol.cpp
new file mode 100644
index 0000000..280b105
--- /dev/null
+++ b/src/pso/protocol.cpp
@@ -0,0 +1,9 @@
+#include "pso/protocol.h"
+#include <global_types.h>
+
+void bswap_32(u32 *val) {}
+void bswap_16(u16 *val) {}
+
+void packet_header::bswap() {
+ bswap_16(&size);
+}