-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNKMSortIndex_tbb.cs
31 lines (25 loc) · 1.13 KB
/
NKMSortIndex_tbb.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Amicitia.IO.Binary;
using SMT4NKMSortIndexTextDump.NKMSortIndex;
namespace SMT4NKMSortIndexTextDump
{
internal class NKMSortIndex_tbb
{
public TBCR Header { get; set; } = new TBCR();
public RaceName RaceNameBlock { get; set; } = new RaceName();
public DemonName DemonNameBlock { get; set; } = new DemonName();
public DataSection DataSection3 { get; set; } = new DataSection();
public DataSection DataSection4 { get; set; } = new DataSection();
public void Read(BinaryObjectReader NKMSortIndexFile)
{
Header.Read(NKMSortIndexFile);
NKMSortIndexFile.Seek(Header.SectionPointers[0], SeekOrigin.Begin);
RaceNameBlock.Read(NKMSortIndexFile);
NKMSortIndexFile.Seek(Header.SectionPointers[1], SeekOrigin.Begin);
DemonNameBlock.Read(NKMSortIndexFile);
NKMSortIndexFile.Seek(Header.SectionPointers[2], SeekOrigin.Begin);
DataSection3.Read(NKMSortIndexFile);
NKMSortIndexFile.Seek(Header.SectionPointers[3], SeekOrigin.Begin);
DataSection4.Read(NKMSortIndexFile);
}
}
}