summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pso/TPlyGuildCardTag.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/include/pso/TPlyGuildCardTag.h b/include/pso/TPlyGuildCardTag.h
index a29e977..57c30c5 100644
--- a/include/pso/TPlyGuildCardTag.h
+++ b/include/pso/TPlyGuildCardTag.h
@@ -5,19 +5,26 @@
#include "pso/macros.h"
#include <global_types.h>
+struct gc_tag {
+ u8 tag0;
+ u8 tag1;
+ u16 tag2;
+};
+
class TPlyGuildCardTag {
public:
- union {
- struct {
- u8 tag0;
- u8 tag1;
- u16 tag2;
- } tag;
- u32 tag_u32;
- };
- u32 guildcard_number;
-
TPlyGuildCardTag &operator=(const TPlyGuildCardTag &src);
void bswap();
+
+ PRIVATE_MEMBER_ACCESSORS(gc_tag, tag);
+ PRIVATE_MEMBER_ACCESSORS(u32, tag_u32);
+ PRIVATE_MEMBER_ACCESSORS(u32, guildcard_number);
+
+private:
+ union {
+ gc_tag m_tag;
+ u32 m_tag_u32;
+ };
+ u32 m_guildcard_number;
} __packed__;
#endif