Update Design Doc: `level` tool

master
Ashley N. 2023-09-09 14:24:21 +00:00
parent cf65722c64
commit 9f4d33530a
1 changed files with 6 additions and 3 deletions

@ -91,9 +91,11 @@ This file contains the entity-component system defined by the [attributes](#enti
Holds information on the sizes of various large segments in the file.
```
2 bytes: Object Table Size
* The object table is a sparse array of active entities you memcpy into RAM. Normally this is 512 but future versions of level may permit customisation.
* The object table is a sparse array of active entities you memcpy into RAM.
* Normally this is 512 but future versions of level may permit customisation.
2 bytes: Component Attribute Union Size
* This is the size in bytes of the largest type i.e. the one requiring the most bytes for its component attributes (which are 2 bytes each).
* This is the size in bytes of the largest type
* i.e. the one requiring the most bytes for its component attributes (2 bytes each).
2 bytes: Number of systems
* This is the number of systems in the total Entity-Component System.
```
@ -129,5 +131,6 @@ For each unique system ID, a length of the array, then a list of indices into th
For (Number of systems):
1 byte: Number of attached components
For (Number of attached components):
1 byte: Index into the Object Table pointing to a Type ID containing at least one relevant component to the system
1 byte: Index into the Object Table
* (Pointing to a Type ID containing at least one relevant component to the system)
```