1
+ using PropertyChanged ;
2
+ using XAT . Core ;
3
+ using XAT . Game . Formats . Tmb . Entries ;
4
+
5
+ namespace XAT . Game . Formats . Tmb ;
6
+
7
+ [ AddINotifyPropertyChangedInterface ]
8
+ public class TmfcFormat : TmbItemFormat
9
+ {
10
+ public const string MAGIC = "TMFC" ;
11
+ public override string Magic => MAGIC ;
12
+
13
+ public override int Size => 0x20 ;
14
+ public override int ExtraSize => 0 ;
15
+ public override int TimelineCount => 0 ;
16
+
17
+ [ UserType ]
18
+ public int Unk1 { get ; set ; } = 0 ;
19
+
20
+ [ UserType ]
21
+ public int Unk2 { get ; set ; } = 0 ;
22
+
23
+ [ UserType ]
24
+ public int Unk3 { get ; set ; } = 0 ;
25
+
26
+ [ UserType ]
27
+ public int Unk4 { get ; set ; } = 0 ;
28
+ [ UserType ]
29
+ public int Unk5 { get ; set ; } = 0 ;
30
+ [ UserType ]
31
+ public int Unk6 { get ; set ; } = 0 ;
32
+
33
+ public TmfcFormat ( )
34
+ {
35
+
36
+ }
37
+
38
+ public TmfcFormat ( TmbReadContext context )
39
+ {
40
+ ReadHeader ( context ) ;
41
+
42
+ Unk1 = context . Reader . ReadInt32 ( ) ;
43
+ Unk2 = context . Reader . ReadInt32 ( ) ;
44
+ Unk3 = context . Reader . ReadInt32 ( ) ;
45
+ Unk4 = context . Reader . ReadInt32 ( ) ;
46
+ Unk5 = context . Reader . ReadInt32 ( ) ;
47
+ Unk6 = context . Reader . ReadInt32 ( ) ;
48
+ }
49
+
50
+ public override void Serialize ( TmbWriteContext context )
51
+ {
52
+ WriteHeader ( context ) ;
53
+
54
+ context . Writer . Write ( Unk1 ) ;
55
+ context . Writer . Write ( Unk2 ) ;
56
+ context . Writer . Write ( Unk3 ) ;
57
+ context . Writer . Write ( Unk4 ) ;
58
+ context . Writer . Write ( Unk5 ) ;
59
+ context . Writer . Write ( Unk6 ) ;
60
+ }
61
+ }
0 commit comments