Function: addParentComponent()
addParentComponent(
world,entity,options):ParentEcsComponent
Defined in: common/components/parent-component.ts:21
Attaches a ParentEcsComponent to entity.
Parameters
world
The ECS world entity belongs to.
entity
number
The entity to attach the component to.
options
Options for configuring the parent. parent (the parent
entity's id) has no sensible default and must always be provided.
Returns
The attached component, for further tuning or runtime changes.