From 04f284c24db4eacd32cdd8674720467e434efc5f Mon Sep 17 00:00:00 2001 From: Ashley N Date: Fri, 8 Sep 2023 00:16:33 +0000 Subject: [PATCH] Update Design Doc: `level` tool --- Design-Doc%3A-%60level%60-tool.md | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/Design-Doc%3A-%60level%60-tool.md b/Design-Doc%3A-%60level%60-tool.md index 66464c7..bb599f7 100644 --- a/Design-Doc%3A-%60level%60-tool.md +++ b/Design-Doc%3A-%60level%60-tool.md @@ -94,21 +94,28 @@ For (number of entities): * 2 bytes: Entity ID ``` -#### Component Definitions +#### Component Classes ``` -* 2 bytes: Number of component definitions -For (number of component definitions): - * 2 bytes: 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. +* 2 bytes: Number of component classes +For (number of component classes): + * 2 bytes: ID of this component class + * 2 bytes: Number of 16-bit properties associated with this component (Order of properties are identical to order of properties in configuration TOML) ``` -#### Component Data +#### Component Objects ``` -* 2 bytes: Number of component instances -For (number of component instances): +* 2 bytes: Number of component objects +For (number of component objects): + * 2 bytes: ID of this component object * 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). + * 2 bytes: ID of the component class +``` + +#### Component Attributes +``` +* 2 bytes: Number of component attributes +For (number of component attributes): + * 2 bytes: ID of the component object + * 2 bytes: Index of the property (Order of properties are identical to order of properties in configuration TOML) + * 2 bytes: Value of the property ``` \ No newline at end of file