-
Notifications
You must be signed in to change notification settings - Fork 0
/
FXF.bt
159 lines (145 loc) · 3 KB
/
FXF.bt
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
//------------------------------------------------
//--- 010 Editor v8.0.1 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
const uint TEXTURE = 0;
const uint MODEL = 1;
const uint SOUND = 2;
const uint MATERIAL = 4;
const uint CHARACTER_ANIMATION = 6;
const uint FONT = 7;
typedef struct {
UINT Length;
CHAR Text[Length];
} CSTRING;
struct {
UINT Version;
FLOAT Unknown;
UINT EmptyData[4];
UINT SectionCount;
} HEADER;
struct {
UINT Count;
struct {
CSTRING Name;
} LIST[Count] <optimize=false>;
} NAMES[HEADER.SectionCount] <optimize=false>;
UINT Count;
typedef struct {
UINT type;
UINT Index;
//
UINT groupIndex;
CSTRING Name;
CSTRING FileName;
CSTRING Path;
UINT Un;
UINT Un;
switch (type) {
case TEXTURE:
struct {
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
} DATA;
break;
case MODEL:
struct {
UINT num;
struct {
UINT Un;
UINT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
FLOAT Un;
} B[num];
UINT Un;
UINT Un;
} DATA;
break;
case SOUND:
struct {
UINT Un[3] <optimize=false>;
} DATA;
break;
case MATERIAL:
struct {
FLOAT Un[17];
UINT Un;
UINT Un;
UINT Un;
UINT textureNum;
UINT texIndex[textureNum];
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
UINT Un;
} DATA;
break;
case CHARACTER_ANIMATION:
struct {
UINT Un;
} DATA;
break;
case FONT:
struct {
CSTRING Name;
CSTRING Name;
UINT Un;
UINT Un;
UINT Un;
UINT b;
UINT Un;
if (b != -1) {
UINT n;
UINT Un;
UINT Un;
UINT num;
UINT Un;
char text[256];
struct {
FLOAT A[4];
} a[num];
};
} DATA;
break;
};
} NODE <optimize=false>;
NODE D[Count] <name=getName()>;
string getName() {
string str, nameStr;
if (exists(this.FileName.Text))
nameStr = this.FileName.Text;
else
nameStr = this.Name.Text;
SPrintf(str, "%s: %s", NAMES[this.type].LIST[this.groupIndex].Name.Text, nameStr);
return str;
}