Skip to content

Commit

Permalink
Add C124 (used by Carbuncle animations)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsgardXIV committed Aug 1, 2022
1 parent d59a87a commit c1d61c1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions XAT/XAT/Game/Formats/Tmb/Entries/C124Format.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using PropertyChanged;
using XAT.Core;

namespace XAT.Game.Formats.Tmb.Entries;

[AddINotifyPropertyChangedInterface]
public class C124Format : TmbEntry
{
public const string MAGIC = "C124";
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 C124Format()
{

}
public C124Format(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 @@ -38,6 +38,7 @@ public static class TmbUtils
{ C107Format.MAGIC, typeof(C107Format) },
{ C118Format.MAGIC, typeof(C118Format) },
{ C120Format.MAGIC, typeof(C120Format) },
{ C124Format.MAGIC, typeof(C124Format) },
{ C125Format.MAGIC, typeof(C125Format) },
{ C131Format.MAGIC, typeof(C131Format) },
{ C173Format.MAGIC, typeof(C173Format) },
Expand Down

0 comments on commit c1d61c1

Please sign in to comment.