Application
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
gameAnalytics: import("./platform/game_analytics").GameAnalyticsInterface |
|
| public |
inputMgr: * |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
savegameMgr: * |
|
| public |
|
|
| public |
|
|
| public |
settings: * |
|
| public |
sound: import("./platform/sound").SoundInterface |
|
| public |
stateMgr: * |
|
| public |
storage: import("./platform/storage").StorageInterface |
|
| public |
ticker: * |
|
| public |
trackedIsRenderable: TypedTrackedState<boolean> |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
async boot() Boots the application |
|
| public |
checkResize(forceUpdate: boolean) Checks if the app resized. |
|
| public |
deinitialize(): * Deinitializes the application |
|
| public |
getEffectiveUiScale(): * Returns the effective ui sclae |
|
| public |
handleMousemove(event: MouseEvent) Handles a mouse move event |
|
| public |
handleVisibilityChange(event: Event) Handles a page visibility change event |
|
| public |
Initializes all platform instances |
|
| public |
isRenderable(): * Returns if the app is currently visible |
|
| public |
onAppRenderableStateChanged(renderable: *) |
|
| public |
onBackgroundFrame(dt: number) Background frame update callback |
|
| public |
onBeforeUnload(event: *) Internal before-unload handler |
|
| public |
onBlur() Internal blur handler |
|
| public |
onFocus() Internal on focus handler |
|
| public |
onFrameEmitted(dt: number) Frame update callback |
|
| public |
onUnload(event: *) Internal unload handler |
|
| public |
Registers all event listeners |
|
| public |
Registers all game states |
|
| public |
Callback after ui scale has changed |
|
| public |
updateFocusAfterUserInteraction(event: TouchEvent) Checks the focus after a touch |
|
Public Constructors
public constructor() source
Public Members
public adProvider: AdProviderInterface source
public analytics: AnalyticsInterface source
public backgroundResourceLoader: * source
public gameAnalytics: import("./platform/game_analytics").GameAnalyticsInterface source
public inputMgr: * source
public lastResizeCheck: * source
public onAboutClicked: * source
public platformWrapper: PlatformWrapperInterface source
public restrictionMgr: * source
public savegameMgr: * source
public settings: * source
public sound: import("./platform/sound").SoundInterface source
public stateMgr: * source
public storage: import("./platform/storage").StorageInterface source
public ticker: * source
Public Methods
public checkResize(forceUpdate: boolean) source
Checks if the app resized. Only does this once in a while
Params:
| Name | Type | Attribute | Description |
| forceUpdate | boolean | Forced update of the dimensions |
public handleMousemove(event: MouseEvent) source
Handles a mouse move event
Params:
| Name | Type | Attribute | Description |
| event | MouseEvent |
public handleVisibilityChange(event: Event) source
Handles a page visibility change event
Params:
| Name | Type | Attribute | Description |
| event | Event |
public onAppRenderableStateChanged(renderable: *) source
Params:
| Name | Type | Attribute | Description |
| renderable | * |
public onBackgroundFrame(dt: number) source
Background frame update callback
Params:
| Name | Type | Attribute | Description |
| dt | number |
public onBeforeUnload(event: *) source
Internal before-unload handler
Params:
| Name | Type | Attribute | Description |
| event | * |
public onFrameEmitted(dt: number) source
Frame update callback
Params:
| Name | Type | Attribute | Description |
| dt | number |
public onUnload(event: *) source
Internal unload handler
Params:
| Name | Type | Attribute | Description |
| event | * |
public updateFocusAfterUserInteraction(event: TouchEvent) source
Checks the focus after a touch
Params:
| Name | Type | Attribute | Description |
| event | TouchEvent |
