Update Design Doc: `level` tool
parent
78bd6d160b
commit
04f284c24d
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue