diff --git a/XAT/XAT/Game/Formats/Tmb/Entries/C124Format.cs b/XAT/XAT/Game/Formats/Tmb/Entries/C124Format.cs new file mode 100644 index 0000000..7fdf8a7 --- /dev/null +++ b/XAT/XAT/Game/Formats/Tmb/Entries/C124Format.cs @@ -0,0 +1,47 @@ +using PropertyChanged; +using XAT.Core; + +namespace XAT.Game.Formats.Tmb.Entries; + +[AddINotifyPropertyChangedInterface] +public class C124Format : TmbEntry +{ + public const string MAGIC = "C124"; + public override string Magic => MAGIC; + + public override int Size => 0x18; + public override int ExtraSize => 0; + public override int TimelineCount => 0; + + [UserType] + public int Unk1 { get; set; } = 1; + + [UserType] + public int Unk2 { get; set; } = 0; + + [UserType] + public int Unk3 { get; set; } = 0; + + + public C124Format() + { + + } + public C124Format(TmbReadContext context) + { + ReadHeader(context); + + Unk1 = context.Reader.ReadInt32(); + Unk2 = context.Reader.ReadInt32(); + Unk3 = context.Reader.ReadInt32(); + } + + public override void Serialize(TmbWriteContext context) + { + WriteHeader(context); + + context.Writer.Write(Unk1); + context.Writer.Write(Unk2); + context.Writer.Write(Unk3); + } +} \ No newline at end of file diff --git a/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs b/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs index 3e16c14..2f992fc 100644 --- a/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs +++ b/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs @@ -38,6 +38,7 @@ public static class TmbUtils { C107Format.MAGIC, typeof(C107Format) }, { C118Format.MAGIC, typeof(C118Format) }, { C120Format.MAGIC, typeof(C120Format) }, + { C124Format.MAGIC, typeof(C124Format) }, { C125Format.MAGIC, typeof(C125Format) }, { C131Format.MAGIC, typeof(C131Format) }, { C173Format.MAGIC, typeof(C173Format) },