Class: System

System(iSystemSettings, canvasContaineropt)

A main app class,
Holder class for GameStage,
can register new GameStages,
init and preload data for them,

Constructor

new System(iSystemSettings, canvasContaineropt)

Parameters:
Name Type Attributes Default Description
iSystemSettings SystemSettings holds iSystem settings
canvasContainer HTMLElement | null <optional>
null If it is not passed, iSystem will create div element and attach it to body
Source:

Members

iSystem :ISystem

Source:

Methods

preloadAllData() → {Promise.<void>}

Preloads assets for all registered pages
Source:
Returns:
Type
Promise.<void>

registerStage(screenPageName, stage)

A main factory method for create GameStage instances,
register them in a System and call GameStage.register() stage
Parameters:
Name Type Description
screenPageName string
stage GameStage
Source: