#ifndef TPLYGUILDCARDTAG_H #define TPLYGUILDCARDTAG_H #include "pso/forward.h" #include "pso/macros.h" #include struct gc_tag { u8 tag0; u8 tag1; u16 tag2; }; class TPlyGuildCardTag { public: TPlyGuildCardTag() {}; TPlyGuildCardTag(u16 tag2, u32 guildcard_number) { m_tag0 = 0; m_tag1 = 0; m_tag2 = tag2; m_guildcard_number = guildcard_number; }; int operator==(TPlyGuildCardTag &other) { return (m_tag1 == other.m_tag1) && (m_tag2 == other.m_tag2) && (m_guildcard_number == other.m_guildcard_number); }; void bswap() { bswap_32(&m_guildcard_number); bswap_16(&m_tag2); }; public: u8 m_tag0; u8 m_tag1; u16 m_tag2; u32 m_guildcard_number; } __packed__; #endif