File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ using PropertyChanged ;
2
+ using XAT . Core ;
3
+
4
+ namespace XAT . Game . Formats . Tmb . Entries ;
5
+
6
+ [ AddINotifyPropertyChangedInterface ]
7
+ public class C188Format : TmbEntry
8
+ {
9
+ public const string MAGIC = "C188" ;
10
+ public override string Magic => MAGIC ;
11
+
12
+ public override int Size => 0x14 ;
13
+ public override int ExtraSize => 0 ;
14
+ public override int TimelineCount => 0 ;
15
+
16
+ [ UserType ]
17
+ public int Unk1 { get ; set ; } = 0 ;
18
+
19
+ [ UserType ]
20
+ public int Unk2 { get ; set ; } = 0 ;
21
+
22
+
23
+ public C188Format ( )
24
+ {
25
+
26
+ }
27
+
28
+ public C188Format ( TmbReadContext context )
29
+ {
30
+ ReadHeader ( context ) ;
31
+
32
+ Unk1 = context . Reader . ReadInt32 ( ) ;
33
+ Unk2 = context . Reader . ReadInt32 ( ) ;
34
+ }
35
+
36
+ public override void Serialize ( TmbWriteContext context )
37
+ {
38
+ WriteHeader ( context ) ;
39
+
40
+ context . Writer . Write ( Unk1 ) ;
41
+ context . Writer . Write ( Unk2 ) ;
42
+ }
43
+ }
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public static class TmbUtils
48
48
{ C174Format . MAGIC , typeof ( C174Format ) } ,
49
49
{ C175Format . MAGIC , typeof ( C175Format ) } ,
50
50
{ C187Format . MAGIC , typeof ( C187Format ) } ,
51
+ { C188Format . MAGIC , typeof ( C188Format ) } ,
51
52
{ C198Format . MAGIC , typeof ( C198Format ) } ,
52
53
{ C203Format . MAGIC , typeof ( C203Format ) } ,
53
54
{ C204Format . MAGIC , typeof ( C204Format ) } ,
You can’t perform that action at this time.
0 commit comments