Module hierarchy

Source
Expand description

The canonical “parent-child” Relationship for entities, driven by the ChildOf Relationship and the Children RelationshipTarget.

See ChildOf for a full description of the relationship and how to use it.

Structs§

ChildOf
Stores the parent entity of this child entity with this component.
Children
Tracks which entities are children of this parent entity.

Functions§

validate_parent_has_component
An on_insert component hook that when run, will validate that the parent of a given entity contains component C. This will print a warning if the parent does not contain C.

Type Aliases§

ChildSpawner
A type alias over RelatedSpawner used to spawn child entities containing a ChildOf relationship.
ChildSpawnerCommands
A type alias over RelatedSpawnerCommands used to spawn child entities containing a ChildOf relationship.