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 name represented by a symbol.

Implements

Constructors

Constructor

new TimerComponent(tasks): TimerComponent

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

Parameters

tasks

TimerTask[] = []

Returns

TimerComponent

Properties

name

name: symbol

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

The unique name of the component.

Implementation of

Component.name


tasks

tasks: TimerTask[]

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


symbol

readonly static symbol: typeof symbol

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

Methods

addTask()

addTask(task): void

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

Parameters

task

TimerTask

Returns

void