Class

GameDispatcher

GameDispatcher()

Game event dispatcher.
Constructor

# new GameDispatcher()

View Source browser/lib/Events/GameDispatcher.js, line 8

Methods

# loadGame(params) → {void}

Dispatch load game event.
Parameters:
Name Type Description
params Object
save Object the save file json object
instantiate boolean whether or not the game has already been instantiated past the splash screen

View Source browser/lib/Events/GameDispatcher.js, line 32

void

# message(message) → {void}

Dispatch custom message.
Parameters:
Name Type Description
message string the message to send

View Source browser/lib/Events/GameDispatcher.js, line 17

void