summaryrefslogtreecommitdiff
path: root/src/pso/TPlyGuildCardTag.cpp
blob: 2626adccbd2ecc43c2b10972e7c1766dc0bba9d3 (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
#include "pso/TPlyGuildCardTag.h"
#include "pso/protocol.h"
#include <global_types.h>

TPlyGuildCardTag::TPlyGuildCardTag() {}

TPlyGuildCardTag::TPlyGuildCardTag(u16 tag2, u32 guildcard_number) {
	m_tag.tag0 = 0;
	m_tag.tag1 = 0;
	m_tag.tag2 = tag2;
	m_guildcard_number = guildcard_number;
}

void TPlyGuildCardTag::bswap() {
	bswap_32(&m_guildcard_number);
	bswap_16(&m_tag.tag2);
}

void TPlyGuildCardTag::assign(const TPlyGuildCardTag &src) {
	_assign(src);
}

void TPlyGuildCardTag::assign(const TPlyGuildCardTag *src) {
	_assign(*src);
}