-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtilesetdata_dat.ksy
133 lines (133 loc) · 2.68 KB
/
tilesetdata_dat.ksy
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
meta:
id: tilesetdata_dat
title: WolfRPG TileSetData.dat file
application: WolfRPG
file-extension: dat
license: MIT
endian: le
imports:
- common
types:
tile_passable:
seq:
- id: counter_enabled
type: b1
- id: square
type: b1
- id: quarter_tile
type: b1
- id: star
type: b1
- id: top_left_passable
type: b1
if: quarter_tile
- id: upwards_not_passable
type: b1
if: quarter_tile == false
- id: top_right_passable
type: b1
if: quarter_tile
- id: rightwards_not_passable
type: b1
if: quarter_tile == false
- id: bottom_left_passable
type: b1
if: quarter_tile
- id: leftwards_not_passable
type: b1
if: quarter_tile == false
- id: bottom_right_passable
type: b1
if: quarter_tile
- id: downwards_not_passable
type: b1
if: quarter_tile == false
- id: na2
type: b6
valid: 0
- id: downarrow
type: b1
- id: triangle
type: b1
- id: na3
type: u2
valid: 0
tileset_210:
seq:
- id: title
type: common::t_str
- id: base_tileset_file
type: common::t_str
- id: auto_tile_files
type: common::t_str
repeat: expr
repeat-expr: 31
- id: separator1
type: u1
valid: 0xff
- id: tag_number_count
type: u4
- id: tag_numbers
type: u1
repeat: expr
repeat-expr: tag_number_count
- id: separator2
type: u1
valid: 0xff
- id: tile_passable_count
type: u4
- id: tile_passable
type: tile_passable
repeat: expr
repeat-expr: tile_passable_count
tileset_209:
seq:
- id: title
type: common::t_str_sjis
- id: base_tileset_file
type: common::t_str_sjis
- id: auto_tile_files
type: common::t_str_sjis
repeat: expr
repeat-expr: 15
- id: separator1
type: u1
valid: 0xff
- id: tag_number_count
type: u4
- id: tag_numbers
type: u1
repeat: expr
repeat-expr: tag_number_count
- id: separator2
type: u1
valid: 0xff
- id: tile_passable_count
type: u4
- id: tile_passable
type: tile_passable
repeat: expr
repeat-expr: tile_passable_count
seq:
- id: magic
contents: [0, 'W', 0, 0, 'O', 'L']
- id: version_header
type: u1
enum: common::version_header
- id: magic2
contents: ['F', 'M', 0]
- id: version
type: u1
- id: length
type: u4
- id: tileset
type:
switch-on: version
cases:
210: tileset_210
209: tileset_209
repeat: expr
repeat-expr: length
- id: footer
type: u1
valid: 0xcf