summaryrefslogtreecommitdiff
path: root/include/pso/TPlySmth.h
blob: 660955f840f751711c7325ada230c140e3bc86e0 (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
#ifndef TPLYSMTH_H
#define TPLYSMTH_H

#include <global_types.h>
#include <pso/protocol.h>
#include <pso/TArray.h>

class TPlySmth {
public:
	TPlySmth() /*{}*/;

	TPlySmth &operator=(const TPlySmth &src) /*{ return assign(src); }*/;

	void bswap() /*{
		bswap_32(m_smth.at_as<u32>(0));
		bswap_32(m_smth1.at_as<u32>(0));
	}*/;

	TPlySmth &assign(const TPlySmth &src) /*{
		m_smth = src.m_smth;
		m_smth1 = src.m_smth1;
	}*/;

	PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4);
	PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4);
private:
	TArray<u8, 4> m_smth;
	TArray<u8, 4> m_smth1;
};

#endif