Function for creating Game API subcontext. This function should be called exactly once through the whole application, when the connection to the blockchain is successfully established, and it also depends on contract API subcontext, database and notification global contexts. It is therefore called as part of the createApiContext function.
Global database context for caching received information
Contract API subcontext for type-safe interaction with contracts
Global notification context for notifying user
Game API subcontext
Converts string representation of xy coordinates to the numeric one
Converts information about mined tiles from mostly string values to the numeric ones.
Converts (mostly string) player data as received from blockchain to their numeric representation
Generated using TypeDoc
This file defines API context for communication with game contract. The context allows this communication in a user-friendly manner and listens and reacts to received game events.