Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ICanUpdate

Implemented by

Index

Methods

off

  • off(eventName: Events.preupdate, handler?: function): void
  • off(eventName: Events.postupdate, handler?: function): void
  • Parameters

    • eventName: Events.preupdate
    • Optional handler: function
        • (event?: Events.PreUpdateEvent): void
        • Parameters

          • Optional event: Events.PreUpdateEvent

          Returns void

    Returns void

  • Parameters

    • eventName: Events.postupdate
    • Optional handler: function
        • (event?: Events.PostUpdateEvent): void
        • Parameters

          • Optional event: Events.PostUpdateEvent

          Returns void

    Returns void

on

  • on(eventName: Events.preupdate, handler: function): void
  • on(eventName: Events.postupdate, handler: function): void
  • Event signature

    Parameters

    • eventName: Events.preupdate
    • handler: function
        • (event?: Events.PreUpdateEvent): void
        • Parameters

          • Optional event: Events.PreUpdateEvent

          Returns void

    Returns void

  • Event signatures

    Parameters

    • eventName: Events.postupdate
    • handler: function
        • (event?: Events.PostUpdateEvent): void
        • Parameters

          • Optional event: Events.PostUpdateEvent

          Returns void

    Returns void

onPostUpdate

  • onPostUpdate(_engine: Engine, _delta: number): void

onPreUpdate

  • onPreUpdate(_engine: Engine, _delta: number): void

once

  • once(eventName: Events.preupdate, handler: function): void
  • once(eventName: Events.postupdate, handler: function): void
  • Parameters

    • eventName: Events.preupdate
    • handler: function
        • (event?: Events.PreUpdateEvent): void
        • Parameters

          • Optional event: Events.PreUpdateEvent

          Returns void

    Returns void

  • Parameters

    • eventName: Events.postupdate
    • handler: function
        • (event?: Events.PostUpdateEvent): void
        • Parameters

          • Optional event: Events.PostUpdateEvent

          Returns void

    Returns void