Class GameObject<TEventMap>

Type Parameters

  • TEventMap extends Object3DEventMap = Object3DEventMap

Hierarchy

Implements

  • EntityLike

Constructors

  • Type Parameters

    • TEventMap extends Object3DEventMap = Object3DEventMap

    Parameters

    • world: World

    Returns GameObject<TEventMap>

Properties

active: boolean = true
componentMask: number = 0
isGameObject: boolean = true

Methods

  • Type Parameters

    • T extends typeof Component

    Parameters

    • componentClass: T
    • initialData: {
          [key: string]: any;
      } = {}
      • [key: string]: any

    Returns Component

  • Type Parameters

    • T extends Component<T>

    Parameters

    • componentClass: {
          bitmask: number;
          defaults: {
              [key: string]: any;
          };
          new (_cm: ComponentManager, _mi: number): T;
      }
        • new (_cm: ComponentManager, _mi: number): T
        • Parameters

          • _cm: ComponentManager
          • _mi: number

          Returns T

      • bitmask: number
      • defaults: {
            [key: string]: any;
        }
        • [key: string]: any

    Returns T

  • Returns typeof Component[]

  • Type Parameters

    • T extends typeof Component

    Parameters

    • componentClass: T

    Returns boolean

  • Type Parameters

    • T extends typeof Component

    Parameters

    • componentClass: T

    Returns void