Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace GameObjectRegistry

Index

Functions

callForType

  • callForType(type: string, func: string, ...params: any): any

callForTypeSafe

  • callForTypeSafe(type: string, func: string, ...params: any): any
  • Same as GameObjectRegistry.callForType, though a new array is created before calling functions on the game objects to ensure the riginal engine's data safety

    Parameters

    • type: string
    • func: string
    • Rest ...params: any

    Returns any

getAllByType

  • getAllByType(type: string, clone: boolean): GameObject[]
  • Gets an array of GameObjects of specified type.

    Parameters

    • type: string

      unique GameObject type to get all the instances of

    • clone: boolean

      if true, a new array is created to ensure the original engine's data safety

    Returns GameObject[]

Generated using TypeDoc