Update Design Doc: `level` tool
parent
6233e33622
commit
19836e9b7e
|
@ -43,22 +43,22 @@ health = {
|
|||
The .lvl format is output by the `level` tool. It is a binary format ideal for use on a 8-bit or 16-bit game console. All coordinates use (0,0) upper left as an origin.
|
||||
|
||||
### Component Definitions
|
||||
```
|
||||
* 2 bytes: Number of component definitions
|
||||
|
||||
For (number of component definitions):
|
||||
* 1 byte: ID for this component
|
||||
* 1 byte: Number of 16-bit properties associated with this component
|
||||
* Note: Order of fields are identical to order of fields in configuration TOML.
|
||||
```
|
||||
|
||||
### Component Data
|
||||
```
|
||||
* 2 bytes: Number of component instances
|
||||
|
||||
For (number of component instances):
|
||||
* 2 bytes: ID of the associated entity
|
||||
* 2 bytes: Index of the component definition (from component definitions - not the ID! but the index)
|
||||
|
||||
---For (number of 16-bit properties in the component as determined from its entry in "Component Definitions"):
|
||||
|
||||
------* 2 bytes: Value of the associated field (order per configuration TOML as mentioned above).
|
||||
For (number of 16-bit properties in the component as determined from its entry in "Component Definitions"):
|
||||
* 2 bytes: Value of the associated field (order per configuration TOML as mentioned above).
|
||||
```
|
||||
|
||||
(TBD !!)
|
Loading…
Reference in New Issue