Class: TimerComponent
Defined in: timer/components/timer-component.ts:13
Represents a component in the Entity-Component-System (ECS) architecture. Each component has a unique id represented by a symbol.
Extends
Constructors
Constructor
new TimerComponent(
tasks):TimerComponent
Defined in: timer/components/timer-component.ts:16
Parameters
tasks
TimerTask[] = []
Returns
TimerComponent
Overrides
Properties
tasks
tasks:
TimerTask[]
Defined in: timer/components/timer-component.ts:14
Accessors
id
Get Signature
get
staticid():symbol
Defined in: ecs/types/Component.ts:12
The unique id of the component.
Returns
symbol
Inherited from
Methods
addTask()
addTask(
task):void
Defined in: timer/components/timer-component.ts:22
Parameters
task
Returns
void