Skip to content

Commit

Permalink
Added C088
Browse files Browse the repository at this point in the history
  • Loading branch information
AsgardXIV committed Aug 28, 2022
1 parent ce7c2ba commit 2a2f637
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions XAT/XAT/Game/Formats/Tmb/Entries/C088Format.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using PropertyChanged;
using XAT.Core;

namespace XAT.Game.Formats.Tmb.Entries;

[AddINotifyPropertyChangedInterface]
public class C088Format : TmbEntry
{
public const string MAGIC = "C088";
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; } = 1;

[UserType]
public int Unk2 { get; set; } = 0;


public C088Format()
{

}
public C088Format(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);
}
}
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 @@ -33,6 +33,7 @@ public static class TmbUtils
{ C063Format.MAGIC, typeof(C063Format) },
{ C067Format.MAGIC, typeof(C067Format) },
{ C075Format.MAGIC, typeof(C075Format) },
{ C088Format.MAGIC, typeof(C088Format) },
{ C093Format.MAGIC, typeof(C093Format) },
{ C094Format.MAGIC, typeof(C094Format) },
{ C107Format.MAGIC, typeof(C107Format) },
Expand Down

0 comments on commit 2a2f637

Please sign in to comment.