ChildLinkedComponent - acrimi/Raven GitHub Wiki
ChildLinkedComponent
is an abstract component meant to be implemented by other components that hold a reference to other entities in a parent-child type relationship. It cannot be applied directly to an entity, it can only be inherited from. Its primary purpose is to be able to reference child relationships in a generic way, such as for the ChildAction, but it also provides common template properties for components that inherit from it.
Configuration
This component doesn't accept any configuration parameters
Properties
The following properties are readable by property accessors (eg render state and persistence definitions):
Key | Type | Description |
---|---|---|
childId | int | The id of the child entity referenced by this component, or -1 if no entity is currently linked |
hasChild | boolean | True if an entity is currently referenced by this component, false otherwise |