mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Add tab format.
This commit is contained in:
parent
4b54d2c3cf
commit
a0c2c884bd
1 changed files with 51 additions and 0 deletions
51
formats/tab.ksy
Normal file
51
formats/tab.ksy
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
meta:
|
||||||
|
id: aim_db_tab
|
||||||
|
endian: le
|
||||||
|
|
||||||
|
seq:
|
||||||
|
- id: header
|
||||||
|
type: tab
|
||||||
|
- id: tables
|
||||||
|
type: table
|
||||||
|
repeat: expr
|
||||||
|
repeat-expr: header.n_tables
|
||||||
|
- id: fields
|
||||||
|
type: field
|
||||||
|
repeat: expr
|
||||||
|
repeat-expr: header.n_fields
|
||||||
|
|
||||||
|
types:
|
||||||
|
char20:
|
||||||
|
seq:
|
||||||
|
- id: str
|
||||||
|
type: str
|
||||||
|
encoding: ASCII
|
||||||
|
size: 0x20
|
||||||
|
|
||||||
|
tab:
|
||||||
|
seq:
|
||||||
|
- id: n_tables
|
||||||
|
type: u4
|
||||||
|
- id: n_fields
|
||||||
|
type: u4
|
||||||
|
|
||||||
|
table:
|
||||||
|
seq:
|
||||||
|
- id: id
|
||||||
|
type: u4
|
||||||
|
- id: name
|
||||||
|
type: char20
|
||||||
|
- id: unk
|
||||||
|
type: u4
|
||||||
|
|
||||||
|
field:
|
||||||
|
seq:
|
||||||
|
- id: table_id
|
||||||
|
type: u4
|
||||||
|
- id: id
|
||||||
|
type: u4
|
||||||
|
- id: name
|
||||||
|
type: char20
|
||||||
|
- id: field_type
|
||||||
|
type: u4
|
||||||
|
|
||||||
Loading…
Reference in a new issue