Skip to content

Commit

Permalink
Add C188
Browse files Browse the repository at this point in the history
  • Loading branch information
AsgardXIV committed Oct 13, 2022
1 parent 752db3f commit cb3833d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions XAT/XAT/Game/Formats/Tmb/Entries/C188Format.cs
Original file line number Diff line number Diff line change
@@ -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);
}
}
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 @@ -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) },
Expand Down

0 comments on commit cb3833d

Please sign in to comment.