From 9f4d33530a217ab87ec2cba48b34f47697f463f6 Mon Sep 17 00:00:00 2001 From: Ashley N Date: Sat, 9 Sep 2023 14:24:21 +0000 Subject: [PATCH] Update Design Doc: `level` tool --- Design-Doc%3A-%60level%60-tool.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Design-Doc%3A-%60level%60-tool.md b/Design-Doc%3A-%60level%60-tool.md index 397381e..e59cbca 100644 --- a/Design-Doc%3A-%60level%60-tool.md +++ b/Design-Doc%3A-%60level%60-tool.md @@ -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) ```