@@ -51,14 +51,15 @@ public static class Entry implements DMBObjectEntryBasedSubblock.Entry {
51
51
52
52
// >= 494
53
53
54
- public int idH ;
55
- public short unkB ;
56
- public short unkC ;
54
+ @ StringID // Nullable
55
+ public int maptext ;
56
+ public short maptextWidth ;
57
+ public short maptextHeight ;
57
58
58
59
// >= 508
59
60
60
- public short unkD ;
61
- public short unkE ;
61
+ public short maptextX ;
62
+ public short maptextY ;
62
63
63
64
// --
64
65
@@ -83,13 +84,13 @@ public static class Entry implements DMBObjectEntryBasedSubblock.Entry {
83
84
84
85
// >= 500
85
86
86
- public byte hasFloats ;
87
- public float [] floats = new float [6 ];
87
+ public byte hasTransform ;
88
+ public float [] transform = new float [6 ];
88
89
89
90
// >= 509
90
91
91
- public byte hasEvenMoreFloats ;
92
- public float [] evenMoreFloats = new float [20 ];
92
+ public byte hasColourMatrix ;
93
+ public float [] colourMatrix = new float [20 ];
93
94
94
95
// >= 306
95
96
@@ -118,14 +119,14 @@ public void read(DMBReadContext rc) {
118
119
text = rc .id ();
119
120
120
121
if (rc .vRHS >= 494 ) {
121
- idH = rc .id ();
122
- unkB = rc .io .getShort ();
123
- unkC = rc .io .getShort ();
122
+ maptext = rc .id ();
123
+ maptextWidth = rc .io .getShort ();
124
+ maptextHeight = rc .io .getShort ();
124
125
}
125
126
126
127
if (rc .vRHS >= 508 ) {
127
- unkD = rc .io .getShort ();
128
- unkE = rc .io .getShort ();
128
+ maptextX = rc .io .getShort ();
129
+ maptextY = rc .io .getShort ();
129
130
}
130
131
131
132
suffix = rc .id ();
@@ -144,15 +145,15 @@ public void read(DMBReadContext rc) {
144
145
layer = rc .io .getFloat ();
145
146
146
147
if (rc .vRHS >= 500 ) {
147
- hasFloats = rc .io .get ();
148
- if (hasFloats != 0 )
149
- rc .floats (floats );
148
+ hasTransform = rc .io .get ();
149
+ if (hasTransform != 0 )
150
+ rc .floats (transform );
150
151
}
151
152
152
153
if (rc .vRHS >= 509 ) {
153
- hasEvenMoreFloats = rc .io .get ();
154
- if (hasEvenMoreFloats != 0 )
155
- rc .floats (evenMoreFloats );
154
+ hasColourMatrix = rc .io .get ();
155
+ if (hasColourMatrix != 0 )
156
+ rc .floats (colourMatrix );
156
157
}
157
158
158
159
if (rc .vGEN >= 306 )
@@ -181,14 +182,14 @@ public void write(DMBWriteContext wc) {
181
182
wc .id (text );
182
183
183
184
if (wc .vRHS >= 494 ) {
184
- wc .id (idH );
185
- wc .i16 (unkB );
186
- wc .i16 (unkC );
185
+ wc .id (maptext );
186
+ wc .i16 (maptextWidth );
187
+ wc .i16 (maptextHeight );
187
188
}
188
189
189
190
if (wc .vRHS >= 508 ) {
190
- wc .i16 (unkD );
191
- wc .i16 (unkE );
191
+ wc .i16 (maptextX );
192
+ wc .i16 (maptextY );
192
193
}
193
194
194
195
wc .id (suffix );
@@ -206,15 +207,15 @@ public void write(DMBWriteContext wc) {
206
207
wc .i32 (Float .floatToIntBits (layer ));
207
208
208
209
if (wc .vRHS >= 500 ) {
209
- wc .i8 (hasFloats );
210
- if (hasFloats != 0 )
211
- wc .floats (floats );
210
+ wc .i8 (hasTransform );
211
+ if (hasTransform != 0 )
212
+ wc .floats (transform );
212
213
}
213
214
214
215
if (wc .vRHS >= 509 ) {
215
- wc .i8 (hasEvenMoreFloats );
216
- if (hasEvenMoreFloats != 0 )
217
- wc .floats (evenMoreFloats );
216
+ wc .i8 (hasColourMatrix );
217
+ if (hasColourMatrix != 0 )
218
+ wc .floats (colourMatrix );
218
219
}
219
220
220
221
if (wc .vGEN >= 306 )
0 commit comments