summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-02 15:15:25 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-02 15:15:25 -0400
commitedffe62dde3967f4065f5baf45d3115d574fe3cf (patch)
treedb92a8d58be61acf53f3177ad8fcc11502f4268c /include
parent1094458ab9f0e7c03e8582b194be9bea4181f922 (diff)
TPlyGuildCardTag: Put everything upto `guildcard_number` in a union
This will be needed for later.
Diffstat (limited to 'include')
-rw-r--r--include/pso/TPlyGuildCardTag.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/pso/TPlyGuildCardTag.h b/include/pso/TPlyGuildCardTag.h
index 3e193a0..a29e977 100644
--- a/include/pso/TPlyGuildCardTag.h
+++ b/include/pso/TPlyGuildCardTag.h
@@ -6,11 +6,17 @@
#include <global_types.h>
class TPlyGuildCardTag {
- public:
- u8 tag0;
- u8 tag1;
- u16 tag2;
+public:
+ union {
+ struct {
+ u8 tag0;
+ u8 tag1;
+ u16 tag2;
+ } tag;
+ u32 tag_u32;
+ };
u32 guildcard_number;
+
TPlyGuildCardTag &operator=(const TPlyGuildCardTag &src);
void bswap();
} __packed__;