File tree 2 files changed +48
-0
lines changed
2 files changed +48
-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 C124Format : TmbEntry
8
+ {
9
+ public const string MAGIC = "C124" ;
10
+ public override string Magic => MAGIC ;
11
+
12
+ public override int Size => 0x18 ;
13
+ public override int ExtraSize => 0 ;
14
+ public override int TimelineCount => 0 ;
15
+
16
+ [ UserType ]
17
+ public int Unk1 { get ; set ; } = 1 ;
18
+
19
+ [ UserType ]
20
+ public int Unk2 { get ; set ; } = 0 ;
21
+
22
+ [ UserType ]
23
+ public int Unk3 { get ; set ; } = 0 ;
24
+
25
+
26
+ public C124Format ( )
27
+ {
28
+
29
+ }
30
+ public C124Format ( TmbReadContext context )
31
+ {
32
+ ReadHeader ( context ) ;
33
+
34
+ Unk1 = context . Reader . ReadInt32 ( ) ;
35
+ Unk2 = context . Reader . ReadInt32 ( ) ;
36
+ Unk3 = context . Reader . ReadInt32 ( ) ;
37
+ }
38
+
39
+ public override void Serialize ( TmbWriteContext context )
40
+ {
41
+ WriteHeader ( context ) ;
42
+
43
+ context . Writer . Write ( Unk1 ) ;
44
+ context . Writer . Write ( Unk2 ) ;
45
+ context . Writer . Write ( Unk3 ) ;
46
+ }
47
+ }
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public static class TmbUtils
38
38
{ C107Format . MAGIC , typeof ( C107Format ) } ,
39
39
{ C118Format . MAGIC , typeof ( C118Format ) } ,
40
40
{ C120Format . MAGIC , typeof ( C120Format ) } ,
41
+ { C124Format . MAGIC , typeof ( C124Format ) } ,
41
42
{ C125Format . MAGIC , typeof ( C125Format ) } ,
42
43
{ C131Format . MAGIC , typeof ( C131Format ) } ,
43
44
{ C173Format . MAGIC , typeof ( C173Format ) } ,
You can’t perform that action at this time.
0 commit comments