Class Structure

Represents a Structure that can contain multiple Bricks.

Hierarchy

  • Structure

Constructors

Properties

Accessors

Methods

Constructors

Properties

#bricks: Brick[]

The bricks in the structure

events: EventEmitter

The event emitter for the structure

id: string

The ID of the structure

log: Logger<LoggerOptions>

The logger for the structure

name: string

The name of the structure

Accessors

Methods

  • Adds a brick to the structure.

    Parameters

    • brick: Brick

      The brick to add.

    Returns void

  • Removes all bricks from the structure.

    Returns void

  • Gets a brick from the structure by its ID.

    Parameters

    • id: string

      The ID of the brick.

    Returns undefined | Brick

  • Removes a brick from the structure.

    Parameters

    • brick: Brick

      The brick to remove.

    Returns void