Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComponentRepository

The class that generates and manages all kinds of components.

Hierarchy

  • ComponentRepository

Index

Constructors

Properties

__componentClasses: Map<number, typeof Component> = ...
__component_sid_count_map: Map<number, number> = ...
__components: Map<number, Component[]> = ...

Methods

  • deregisterComponentClass(componentTID: number): void
  • getComponent(componentClass: typeof Component, componentSid: number): undefined | Component
  • Get the instance of the component corresponding to the component class and componentSID.

    Parameters

    • componentClass: typeof Component

      The class object to get the component.

    • componentSid: number

      The componentSID to get the component.

    Returns undefined | Component

  • getComponentClass(componentTid: number): undefined | typeof Component
  • getComponentFromComponentTID(componentTid: number, componentSid: number): undefined | Component
  • Get the instance of the component corresponding to the componentTID and componentSID.

    Parameters

    • componentTid: number

      The componentTID to get the component.

    • componentSid: number

      The componentSID to get the component.

    Returns undefined | Component

  • getComponentTIDs(): number[]
  • getMemoryBeginIndex(componentTid: number): number
  • registerComponentClass(componentClass: typeof Component): void

Generated using TypeDoc