Skip to main content

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

Component.constructor

Properties

tasks

tasks: TimerTask[]

Defined in: timer/components/timer-component.ts:14

Accessors

id

Get Signature

get static id(): symbol

Defined in: ecs/types/Component.ts:12

The unique id of the component.

Returns

symbol

Inherited from

Component.id

Methods

addTask()

addTask(task): void

Defined in: timer/components/timer-component.ts:22

Parameters

task

TimerTask

Returns

void