-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructure.go
139 lines (132 loc) · 3.03 KB
/
structure.go
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
package brlyt
// Pane represents the structure of a pan1 section.
type Pane struct {
Flag uint8
Origin uint8
Alpha uint8
_ uint8
PaneName [16]byte
UserData [8]byte
XTranslation float32
YTranslation float32
ZTranslation float32
XRotate float32
YRotate float32
ZRotate float32
XScale float32
YScale float32
Width float32
Height float32
}
// PIC defines the image pane in a brlyt
type PIC struct {
Flag uint8
Origin uint8
Alpha uint8
_ uint8
PaneName [16]byte
UserData [8]byte
XTranslation float32
YTranslation float32
ZTranslation float32
XRotate float32
YRotate float32
ZRotate float32
XScale float32
YScale float32
Width float32
Height float32
TopLeftColor [4]uint8
TopRightColor [4]uint8
BottomLeftColor [4]uint8
BottomRightColor [4]uint8
MatIndex uint16
NumOfUVSets uint8
_ uint8
}
type UVSet struct {
TopLeftS float32
TopLeftT float32
TopRightS float32
TopRightT float32
BottomLeftS float32
BottomLeftT float32
BottomRightS float32
BottomRightT float32
}
// TXT represents the text data of the txt1 section
type TXT struct {
Flag uint8
Origin uint8
Alpha uint8
_ uint8
PaneName [16]byte
UserData [8]byte
XTranslation float32
YTranslation float32
ZTranslation float32
XRotate float32
YRotate float32
ZRotate float32
XScale float32
YScale float32
Width float32
Height float32
StringLength uint16
MaxStringLength uint16
MatIndex uint16
FontIndex uint16
StringOrigin uint8
LineAlignment uint8
_ uint16
TextOffset uint32
TopColor [4]uint8
BottomColor [4]uint8
FontSizeX float32
FontSizeY float32
CharacterSize float32
LineSize float32
}
type Window struct {
Flag uint8
Origin uint8
Alpha uint8
_ uint8
PaneName [16]byte
UserData [8]byte
XTranslation float32
YTranslation float32
ZTranslation float32
XRotate float32
YRotate float32
ZRotate float32
XScale float32
YScale float32
Width float32
Height float32
Coordinate1 float32
Coordinate2 float32
Coordinate3 float32
Coordinate4 float32
FrameCount uint8
_ [3]byte
WindowOffset uint32
WindowFrameOffset uint32
TopLeftColor [4]uint8
TopRightColor [4]uint8
BottomLeftColor [4]uint8
BottomRightColor [4]uint8
MatIndex uint16
NumOfUVSets uint8
_ uint8
}
type WindowMat struct {
MatIndex uint16
Index uint8
_ uint8
}
type GRP struct {
Name [16]byte
NumOfEntries uint16
_ uint16
}