Class: Event

Event

new Event(target, name, data)

Creates an homogenous object for tracking events so users can know what to expect.

Parameters:
Name Type Description
target Object

The target object that the event is called on

name String

The string name of the event that was triggered

data Object

Arbitrary event data to pass along

Source:
src/plugins/path/EventTarget.js line 222

Extends

  • Object

Members

<readonly> data : Object

The data that was passed in with this event.

Type:
  • Object
Source:
src/plugins/path/EventTarget.js line 274

<readonly> target : Object

The original target the event triggered on.

Type:
  • Object
Source:
src/plugins/path/EventTarget.js line 256

<readonly> timeStamp : Number

The timestamp when the event occurred.

Type:
  • Number
Source:
src/plugins/path/EventTarget.js line 286

<readonly> type : String

The string name of the event that this represents.

Type:
  • String
Source:
src/plugins/path/EventTarget.js line 265

phaser-ce@2.20.0 is on GitHub and NPM

Documentation generated by JSDoc 3.6.7 on 2022-12-10 using Tomorrow.