-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AnimationEditor] Fixed property ordering and more work on DATA/DAT2 …
…reading
- Loading branch information
Showing
6 changed files
with
62 additions
and
28 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
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
25 changes: 23 additions & 2 deletions
25
Plugins/AnimationEditorPlugin/Formats/Sections/Section_DATA.cs
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 |
---|---|---|
@@ -1,17 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using FrostySdk.IO; | ||
|
||
namespace AnimationEditorPlugin.Formats.Sections | ||
{ | ||
public class Section_DATA : Section | ||
{ | ||
public Section_DATA(SectionHeader inHeader) | ||
public int Size { get; protected set; } | ||
|
||
private Dictionary<BankType, Bank> m_banks; | ||
|
||
public Section_DATA(SectionHeader inHeader, Dictionary<BankType, Bank> banks) | ||
: base(inHeader) | ||
{ | ||
m_banks = banks; | ||
} | ||
|
||
public override void Read(NativeReader reader) | ||
{ | ||
throw new System.NotImplementedException(); | ||
Size = (int)reader.ReadUInt(m_endian); | ||
|
||
long bankStartPosition = reader.Position; | ||
|
||
reader.ReadULong(); // unknown | ||
reader.ReadULong(); // unknown | ||
BankType type = (BankType)reader.ReadULong(); | ||
reader.ReadUInt(); // unknown | ||
ushort position = reader.ReadUShort(); | ||
reader.ReadUShort(); // unknown | ||
|
||
Bank bank = m_banks[type]; | ||
|
||
Type assetBankType = AssetBankTypeLibrary.GetType(bank.Name); | ||
object assetBankObject = Activator.CreateInstance(assetBankType); | ||
} | ||
} | ||
} |
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
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
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