diff --git a/XAT/XAT/Game/Formats/Tmb/Entries/C188Format.cs b/XAT/XAT/Game/Formats/Tmb/Entries/C188Format.cs new file mode 100644 index 0000000..cc55abc --- /dev/null +++ b/XAT/XAT/Game/Formats/Tmb/Entries/C188Format.cs @@ -0,0 +1,43 @@ +using PropertyChanged; +using XAT.Core; + +namespace XAT.Game.Formats.Tmb.Entries; + +[AddINotifyPropertyChangedInterface] +public class C188Format : TmbEntry +{ + public const string MAGIC = "C188"; + public override string Magic => MAGIC; + + public override int Size => 0x14; + public override int ExtraSize => 0; + public override int TimelineCount => 0; + + [UserType] + public int Unk1 { get; set; } = 0; + + [UserType] + public int Unk2 { get; set; } = 0; + + + public C188Format() + { + + } + + public C188Format(TmbReadContext context) + { + ReadHeader(context); + + Unk1 = context.Reader.ReadInt32(); + Unk2 = context.Reader.ReadInt32(); + } + + public override void Serialize(TmbWriteContext context) + { + WriteHeader(context); + + context.Writer.Write(Unk1); + context.Writer.Write(Unk2); + } +} \ 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 9a6c718..d140013 100644 --- a/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs +++ b/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs @@ -48,6 +48,7 @@ public static class TmbUtils { C174Format.MAGIC, typeof(C174Format) }, { C175Format.MAGIC, typeof(C175Format) }, { C187Format.MAGIC, typeof(C187Format) }, + { C188Format.MAGIC, typeof(C188Format) }, { C198Format.MAGIC, typeof(C198Format) }, { C203Format.MAGIC, typeof(C203Format) }, { C204Format.MAGIC, typeof(C204Format) },