Skip to content

@fibbojs / core / FGroup

Class: abstract FGroup

The base class for all groups of components in Fibbo.

Constructors

new FGroup()

new FGroup(options): FGroup

Initialize the group with a list of components. If no components are provided, the group will be empty.

Parameters

options = ...

The options for the group.

options.components: FComponent[]

The components to add to the group.

Returns

FGroup

Defined in

core/src/FGroup.ts:19

Methods

addComponent()

addComponent(component): void

Add a component to the group.

Parameters

component: FComponent

Returns

void

Defined in

core/src/FGroup.ts:26


onFrame()

onFrame(delta): void

Update all components in the group.

Parameters

delta: number

The time since the last frame.

Returns

void

Defined in

core/src/FGroup.ts:41


removeComponent()

removeComponent(component): void

Remove a component from the group.

Parameters

component: FComponent

Returns

void

Defined in

core/src/FGroup.ts:33

Properties

components

components: FComponent[] = []

The components in the group.

Defined in

core/src/FGroup.ts:11