Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

__requiredModules

__requiredModules: Array<Constructor<AbstractModule>>

Protected events

events: Array<EventDescriptor<string>>

Protected instances

instances: Map<string, any>

Map of instances, that are owned by this module

Methods

Abstract afterInit

fire

  • fire(eventName: string | Array<string>, data?: ParentEvent<string>): this

getInstance

  • getInstance(name: string): any

getModuleContainer

  • getModuleContainer(): Object3D | void

off

  • off(eventName?: string, callback?: Function): this

on

  • on(eventName: string, callback1: Function, callback2?: Function): this

Abstract onDestroy

  • onDestroy(): void

Abstract onInit

  • onInit(data: any): Promise<Array<any>>
  • Initialization of module. All instances have to be created in this function.

    todo

    Describe data argument in initialization function

    Parameters

    • data: any

      Data from g.frame core.

    Returns Promise<Array<any>>

    Promise of instances array

onPause

  • onPause(): void

onResume

  • onResume(): void

Abstract onUpdate

  • onUpdate(params: { currentTime: number; frame: any }): void
  • Update function for module. Use only this function for all updates.

    todo

    When typescript will have WebXR API declarations -- put frame: XRFrame

    Parameters

    • params: { currentTime: number; frame: any }

      Current frame information

      • currentTime: number

        Time in milliseconds from starts

      • frame: any

        Current XRFrame for WebXR

    Returns void

once

  • once(eventName: string, callback1: Function, callback2?: Function): this

Abstract preInit

Legend

  • Namespace
  • Object literal
  • Variable
  • Function
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Property
  • Method
  • Inherited constructor
  • Inherited method
  • Enumeration
  • Interface
  • Protected property

Generated using TypeDoc