blob: 7901fb92c374e96dc25bedd56d45b5c8ead6b0c1 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
#ifndef TPLYDISPDATA_H
#define TPLYDISPDATA_H
#include <global_types.h>
#include <pso/macros.h>
#include <pso/protocol.h>
#include <pso/TArray.h>
#include <pso/TMath.h>
#include <pso/TPlyGuildCardTag.h>
struct stats {
void bswap();
stats &assign(const stats &src);
short atp;
short mst;
short evp;
short hp;
short dfp;
short ata;
short lck;
};
struct player_stats {
void bswap();
player_stats &assign(const player_stats &src);
struct stats stats;
short mbr_0xe;
float proportions;
float mbr_0x14;
int level;
int exp;
int meseta;
};
struct disp_data_part2 {
void bswap();
disp_data_part2 &assign(const disp_data_part2 &src);
TArray<char, 16> name;
TArray<u32, 2> smth;
u32 name_colour;
u8 extra_model;
TArray<u8, 15> padding;
u32 name_colour_checksum;
u8 section_id;
u8 char_class;
u8 v2_flags;
u8 version;
u32 v1_flags;
u16 costume;
u16 skin;
u16 face;
u16 head;
u16 hair;
u16 hair_r;
u16 hair_g;
u16 hair_b;
vec2f proportions;
};
class TPlyDispConfigSmthTag {
public:
void bswap();
TPlyDispConfigSmthTag &assign(const TPlyDispConfigSmthTag &src);
PRIVATE_MEMBER_ACCESSORS(gc_tag, tag);
private:
gc_tag m_tag;
};
class TPlyDispConfigSmth {
public:
void bswap();
TPlyDispConfigSmth &assign(const TPlyDispConfigSmth &src);
PRIVATE_MEMBER_ACCESSORS(u32, mbr_0x0);
PRIVATE_MEMBER_ACCESSORS_ARRAY(TPlyDispConfigSmthTag, tags, 4);
PRIVATE_MEMBER_ACCESSORS_ARRAY(TPlyDispConfigSmthTag, tags1, 4);
private:
u32 m_mbr_0x0;
TArray<TPlyDispConfigSmthTag, 4> m_tags;
TArray<TPlyDispConfigSmthTag, 4> m_tags1;
};
class TPlyDispConfig {
public:
void bswap();
TPlyDispConfig &assign(const TPlyDispConfig &src);
PRIVATE_MEMBER_ACCESSORS(TPlyDispConfigSmth, smth);
PRIVATE_MEMBER_ACCESSORS(TPlyDispConfigSmth, smth1);
private:
TPlyDispConfigSmth m_smth;
TPlyDispConfigSmth m_smth1;
};
class TPlyDispData {
public:
void bswap();
TPlyDispData &assign(const TPlyDispData &src);
PRIVATE_MEMBER_ACCESSORS(player_stats, stats);
PRIVATE_MEMBER_ACCESSORS(disp_data_part2, disp_part2);
PRIVATE_MEMBER_ACCESSORS(TPlyDispConfig, config);
PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, tech_levels, 20);
private:
player_stats m_stats;
disp_data_part2 m_disp_part2;
TPlyDispConfig m_config;
TArray<u8, 20> m_tech_levels;
};
#endif
|