Class: TParentEntityComponent
Defined in: components/types.ts:28
A component is a data structure that describes a property of an entity.
Extends
Constructors
Constructor
new TParentEntityComponent(
entity):TParentEntityComponent
Defined in: components/types.ts:29
Parameters
entity
number
Returns
TParentEntityComponent
Overrides
Properties
entity
entity:
number
Defined in: components/types.ts:29
requiredComponents?
readonlystaticoptionalrequiredComponents?:TComponentConstructor<TComponent>[]
Defined in: core/component.ts:9
The components that are required by this component. If the entity doesn't have any of the components, they will be created with default values.