Options
All
  • Public
  • Public/Protected
  • All
Menu

Module contexts/EventsContext

This file defines context for emitting global events and subscribing to them.

Interfaces

Type aliases

Functions

Type aliases

Events

Events: "TILE_HOVER" | "TILE_SELECTED" | "NOTIFY" | "GOTO" | "QUALITY_CHANGED"

List of global events, which can be emitted and listened to through the whole application. Their meaning is following:

  • TILE_HOVER - Cursor hovered above another game map tile
  • TILE_SELECTED - Another game map tile was selected
  • NOTIFY - Some part of application wants to show snackbar notification
  • GOTO - Player moved to another position on the game map
  • QUALITY_CHANGED - User changed the quality setting of the game

Functions

Const createEventsContext

  • Function for creating global event context. This function should be called exactly once through the whole application.

    Returns EventsContext

    Global event context

Generated using TypeDoc