Children class
Component that stores references to an entity's children.
Used by the hierarchy system to track parent-child relationships. This component is automatically managed by WorldHierarchyExtension.setParent and WorldHierarchyExtension.removeParent.
Constructors
Properties
-
children
→ Iterable<
Entity> -
Iterates over children.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether there are any children.
no setter
- isNotEmpty → bool
-
Whether there are children.
no setter
- length → int
-
The number of children.
no setter
-
list
→ List<
Entity> -
The list of child entities (read-only view).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Entity child) → void - Adds a child entity.
-
contains(
Entity child) → bool - Whether this contains the given child.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Entity child) → bool - Removes a child entity.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited