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

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

class TPlySmth {
public:
	TPlySmth() {};

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

	void bswap() {
		bswap_32(m_smth.as<u32>());
		bswap_32(m_smth1.as<u32>());
	};

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

	PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4);
	PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4);

	friend class TProtocol;
protected:
	TArray<u8, 4> m_smth;
	TArray<u8, 4> m_smth1;
};

#endif