Skip to content

Commit 921946d

Browse files
committed
move dat object layout to readme
1 parent 0c65d99 commit 921946d

File tree

2 files changed

+45
-44
lines changed

2 files changed

+45
-44
lines changed

OpenLocoTool/DatFileParsing/LocoObject.cs

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,6 @@
33

44
namespace OpenLocoTool.DatFileParsing
55
{
6-
/*
7-
=== Dat File Format ===
8-
|-File-------------------------------|
9-
|-S5Header-|-DatHeader--|-ObjectData-|
10-
11-
==============================================================================================================
12-
13-
|-S5Header----------------|
14-
|-Flags-|-Name-|-Checksum-|
15-
16-
|-DatHeader-------------|
17-
|-Encoding-|-Datalength-|
18-
19-
|-ObjectData-----------------------------------------|
20-
|-Object-|-StringTable-|-VariableData-|-GraphicsData-|
21-
22-
==============================================================================================================
23-
24-
|-Object-|
25-
-- per-object
26-
27-
|-StringTable-|
28-
|-String{n}---|
29-
30-
|-VariableData-|
31-
-- per-object
32-
33-
|-GraphicsData------------------------------|
34-
|-G1Header-|-G1Element32{n}-|-ImageBytes{n}-|
35-
36-
==============================================================================================================
37-
38-
|-String-----------------|
39-
|-Language-|-StringBytes-|
40-
41-
|-G1Header---------------|
42-
|-NumEntries-|-TotalSize-|
43-
44-
|-G1Element32------------------------------------------------------|
45-
|-Offset-|-Width-|-Height-|-xOffset-|-yOffset-|-Flags-|-ZoomOffset-|
46-
47-
|-ImageBytes-|
48-
-- offset by G1Element32.Offset
49-
*/
506
[TypeConverter(typeof(ExpandableObjectConverter))]
517
public class LocoObject : ILocoObject
528
{

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
11
# OpenLocoTool
22
A modern implementation of 'LocoTool' for dat file parsing
3+
4+
# Dat Object Layout
5+
6+
|-File-------------------------------|
7+
|-S5Header-|-DatHeader--|-ObjectData-|
8+
9+
======================================================================================
10+
11+
|-S5Header----------------|
12+
|-Flags-|-Name-|-Checksum-|
13+
14+
|-DatHeader-------------|
15+
|-Encoding-|-Datalength-|
16+
17+
|-ObjectData-----------------------------------------|
18+
|-Object-|-StringTable-|-VariableData-|-GraphicsData-|
19+
20+
======================================================================================
21+
22+
|-Object-|
23+
-- <per-object>
24+
25+
|-StringTable-|
26+
|-String{n}---|
27+
28+
|-VariableData-|
29+
-- <per-object>
30+
31+
|-GraphicsData------------------------------|
32+
|-G1Header-|-G1Element32{n}-|-ImageBytes{n}-|
33+
34+
======================================================================================
35+
36+
|-String-----------------|
37+
|-Language-|-StringBytes-|
38+
39+
|-G1Header---------------|
40+
|-NumEntries-|-TotalSize-|
41+
42+
|-G1Element32------------------------------------------------------|
43+
|-Offset-|-Width-|-Height-|-xOffset-|-yOffset-|-Flags-|-ZoomOffset-|
44+
45+
|-ImageBytes-|
46+
-- offset by G1Element32.Offset
47+

0 commit comments

Comments
 (0)