Constructors
#
constructor+ new ECS(systems?
: System[], entities?
: Entity[]): ECS
#
Parameters:Name | Type | Default value |
---|---|---|
systems | System[] | [] |
entities | Entity[] | [] |
Returns: ECS
Defined in: libs/core/src/components/ECS.tsx:17
#
Properties#
engine• engine: Engine
Defined in: libs/core/src/components/ECS.tsx:16
#
systems• systems: SystemsManager
Defined in: libs/core/src/components/ECS.tsx:17
#
Methods#
Providerâ–¸ Provider(props
: Omit<ProviderProps<ECS>, "value"
>): Element
#
Parameters:Name | Type |
---|---|
props | Omit<ProviderProps<ECS>, "value" > |
Returns: Element
Defined in: libs/core/src/components/ECS.tsx:30
#
updateâ–¸ update(dt
: number): void
#
Parameters:Name | Type |
---|---|
dt | number |
Returns: void
Defined in: libs/core/src/components/ECS.tsx:26