Skip to content

Instantly share code, notes, and snippets.

@melissamcewen
Created September 7, 2021 19:15
Show Gist options
  • Save melissamcewen/d7d67d1552e595c655840766853b3b19 to your computer and use it in GitHub Desktop.
Save melissamcewen/d7d67d1552e595c655840766853b3b19 to your computer and use it in GitHub Desktop.
meta:
id: bdt
file-extension: bdt
endian: le
seq:
- id: file_length
type: u4
- id: version
type: u2
- id: copyright
type: str
terminator: 0
encoding: UTF-8
- id: minx
type: s2
- id: miny
type: s2
- id: minz
type: s2
- id: maxx
type: s2
- id: maxy
type: s2
- id: maxz
type: s2
- id: tag
type: u2
- id: balls
type: ballposition
repeat: expr
repeat-expr: (file_length - 66) / 10
types:
ballposition:
seq:
- id: x
type: s2
- id: y
type: s2
- id: z
type: s2
- id: q1
type: u2
- id: q2
type: u2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment