Model: Entity Type
An entity type defines the characteristics that are common to all entity instances. In particular, an entity type defines which components it is combined from. Additional properties can also be defined.
Data Model
Field | DataType | Description | Example |
---|---|---|---|
Namespace | String | The namespace | core |
Name | String | The name of the entity type | player |
Description | String | Textual description of the entity type | |
Components | Vec<Component> | The components which composes the entity type. These provides additional properties | |
Properties | Vec<Property Type> | The additional properties on entity instances | |
Extensions | Vec<Extension> | A list of extensions which contains additional information |
ER Diagram
erDiagram Entity-Type { string namespace string name } Entity-Instance { string id string label } Extension { string namespace string name JSON extension } Component { string namespace string name } Property-Type { string name enum DataType enum SocketType enum Mutability } Relation-Type { string namespace string name } Entity-Type ||--}o Property-Type : defines Relation-Type ||--}o Property-Type : defines Component ||--}o Property-Type : defines Entity-Type ||--}o Relation-Type : outbound Entity-Type ||--}o Relation-Type : inbound Relation-Type o{--}o Component : composes Entity-Type ||--}o Extension : has Relation-Type ||--}o Extension : has Property-Type ||--}o Extension : has Entity-Instance ||--}o Entity-Type : is-a Entity-Type o{--}o Component : composes