From 8da3e700271dcd5b5bf256b50af05390677aec50 Mon Sep 17 00:00:00 2001 From: Asgard <95163444+AsgardXIV@users.noreply.github.com> Date: Tue, 18 Oct 2022 19:14:38 -0600 Subject: [PATCH] Add C089 --- .../Game/Formats/Tmb/Entries/C089Format.cs | 48 +++++++++++++++++++ XAT/XAT/Game/Formats/Tmb/TmbUtils.cs | 1 + 2 files changed, 49 insertions(+) create mode 100644 XAT/XAT/Game/Formats/Tmb/Entries/C089Format.cs diff --git a/XAT/XAT/Game/Formats/Tmb/Entries/C089Format.cs b/XAT/XAT/Game/Formats/Tmb/Entries/C089Format.cs new file mode 100644 index 0000000..659bbc7 --- /dev/null +++ b/XAT/XAT/Game/Formats/Tmb/Entries/C089Format.cs @@ -0,0 +1,48 @@ +using PropertyChanged; +using XAT.Core; + +namespace XAT.Game.Formats.Tmb.Entries; + +[AddINotifyPropertyChangedInterface] +public class C089Format : TmbEntry +{ + public const string MAGIC = "C089"; + 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 C089Format() + { + + } + public C089Format(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 d140013..7fb84a7 100644 --- a/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs +++ b/XAT/XAT/Game/Formats/Tmb/TmbUtils.cs @@ -36,6 +36,7 @@ public static class TmbUtils { C067Format.MAGIC, typeof(C067Format) }, { C075Format.MAGIC, typeof(C075Format) }, { C088Format.MAGIC, typeof(C088Format) }, + { C089Format.MAGIC, typeof(C089Format) }, { C093Format.MAGIC, typeof(C093Format) }, { C094Format.MAGIC, typeof(C094Format) }, { C107Format.MAGIC, typeof(C107Format) },