Skip to content

Commit c1d61c1

Browse files
committed
Add C124 (used by Carbuncle animations)
1 parent d59a87a commit c1d61c1

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public static class TmbUtils
3838
{ C107Format.MAGIC, typeof(C107Format) },
3939
{ C118Format.MAGIC, typeof(C118Format) },
4040
{ C120Format.MAGIC, typeof(C120Format) },
41+
{ C124Format.MAGIC, typeof(C124Format) },
4142
{ C125Format.MAGIC, typeof(C125Format) },
4243
{ C131Format.MAGIC, typeof(C131Format) },
4344
{ C173Format.MAGIC, typeof(C173Format) },

0 commit comments

Comments
 (0)