Skip to content

@fibbojs / core / FGroup

Class: abstract FGroup ​

The base class for all groups of components in Fibbo.

Deprecated ​

Marked as deprecated while we are not sure if we will keep this class.

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:20

Methods ​

addComponent() ​

addComponent(component): void

Add a component to the group.

Parameters ​

• component: FComponent

Returns ​

void

Defined in ​

core/src/FGroup.ts:27


frame() ​

frame(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:42


removeComponent() ​

removeComponent(component): void

Remove a component from the group.

Parameters ​

• component: FComponent

Returns ​

void

Defined in ​

core/src/FGroup.ts:34

Properties ​

components ​

components: FComponent[] = []

The components in the group.

Defined in ​

core/src/FGroup.ts:12