Skip to content

Commit cb3833d

Browse files
committed
Add C188
1 parent 752db3f commit cb3833d

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
}

XAT/XAT/Game/Formats/Tmb/TmbUtils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public static class TmbUtils
4848
{ C174Format.MAGIC, typeof(C174Format) },
4949
{ C175Format.MAGIC, typeof(C175Format) },
5050
{ C187Format.MAGIC, typeof(C187Format) },
51+
{ C188Format.MAGIC, typeof(C188Format) },
5152
{ C198Format.MAGIC, typeof(C198Format) },
5253
{ C203Format.MAGIC, typeof(C203Format) },
5354
{ C204Format.MAGIC, typeof(C204Format) },

0 commit comments

Comments
 (0)