-
Notifications
You must be signed in to change notification settings - Fork 0
/
tile_set_data.ksy
72 lines (61 loc) · 1.16 KB
/
tile_set_data.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
meta:
id: tile_set_data
endian: le
imports:
- len_str
types:
hmm:
params:
- id: ver
type: u4
seq:
- id: unk1_len
type: u4
- id: unk1
size: unk1_len
- id: unk2
repeat: expr
repeat-expr: ver > 209 ? 8 : 16
type: len_str
- id: check
type: u1
valid: 0xFF
- id: unk3_len
type: u4
- id: unk3
size: unk3_len
- id: check2
type: u1
valid: 0xFF
- id: unk4_len
type: u4
- id: unk4_ver207
size: unk4_len
if: ver == 207
- id: unk4
type: u4
repeat: expr
repeat-expr: unk4_len
if: ver >= 208
# ㅁ?ㄹ
# if ver < 209
# if (unk3_item & 0x110) != 0 unk3_item |= 0x200
seq:
- id: magic
contents: [0, 'W', 0, 0, 'O', 'L', 0, 'F', 'M', 0]
- id: version
type: u1
valid:
any-of:
- 207
- 208
- 209
- id: a
type: u4
- id: tt
type: hmm(version)
repeat: expr
repeat-expr: a
- id: footer
type: u1
valid: 0xCF