Parent mixin

Superclass constraints

Properties

firstChild DefaultPointer<Entity?>
final
hashCode int
The hash code for this object.
no setterinherited
lastChild DefaultPointer<Entity?>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

describeAssets(AssetDescriptor descriptor) → void
Declares every asset this component needs, and keeps each returned handle in a field - the third declare-time pass, chained through mixins with @mustCallSuper exactly like describeType and describeStruct.
inherited
describeStruct(DataDescriptor data) → void
inherited
describeType(ComponentDescriptor component) → void
override
getScene<T extends SceneStruct>() → T
The scene the entity this component instance describes was registered with - reachable from any mixin on Component/on MultiComponent, not just from the top-level EntityStruct subclass, since EntityStruct adds nothing to Component's own interface that a mixin's on bound could see. EntityStruct is the only implementation; every mixin just inherits visibility into it through this interface. Throws if the running scene isn't a T - see EntityStruct's implementation.
inherited
getSystem<T extends GameSystem>() → T
Sugar for getScene<...>().game.getSystem<T>() - reachable from any component mixin for the same reason as getScene.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited