-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters