Class: TopLevelComponent

TopLevelComponent()

Top-level component which manages the display of the entire game.

Constructor

new TopLevelComponent()

Source:

Extends

  • Component

Members

current_route :string

The currently loaded page route.
Type:
  • string
Source:
Array of navigation bar items where "title" is the page name, and "page" is the page route.
Type:
  • Array.<object>
Source:

Methods

(async) on_route_change(path, args) → {Promise.<void>}

Called when the navigation changes.
Parameters:
Name Type Description
path string
args *
Source:
Returns:
Type
Promise.<void>

(async) vue_on_create() → {Promise.<void>}

Called when the component is initialized.
Source:
Returns:
Type
Promise.<void>

(async) vue_on_destroy() → {Promise.<void>}

Called when the component is destroyed.
Source:
Returns:
Type
Promise.<void>