File tree Expand file tree Collapse file tree 2 files changed +45
-44
lines changed
OpenLocoTool/DatFileParsing Expand file tree Collapse file tree 2 files changed +45
-44
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace OpenLocoTool . DatFileParsing
5
5
{
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
- */
50
6
[ TypeConverter ( typeof ( ExpandableObjectConverter ) ) ]
51
7
public class LocoObject : ILocoObject
52
8
{
Original file line number Diff line number Diff line change 1
1
# OpenLocoTool
2
2
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
+
You can’t perform that action at this time.
0 commit comments