Skip to content

Commit

Permalink
Add C089
Browse files Browse the repository at this point in the history
  • Loading branch information
AsgardXIV committed Oct 19, 2022
1 parent cb3833d commit 8da3e70
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions XAT/XAT/Game/Formats/Tmb/Entries/C089Format.cs
Original file line number Diff line number Diff line change
@@ -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);

}
}
1 change: 1 addition & 0 deletions XAT/XAT/Game/Formats/Tmb/TmbUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
Expand Down

0 comments on commit 8da3e70

Please sign in to comment.