blob: 7bcdb71afcd60fb2df1a0701cf334caabbf10186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef TPLYGUILDCARDTAG_H
#define TPLYGUILDCARDTAG_H
#include "pso/forward.h"
#include "pso/macros.h"
#include <global_types.h>
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
|