API Reference gen_game v0.1.1
Modules
To collect cpu and memory usage. Use together with Tsung.
GenGame keeps the contexts that define your domain and business logic.
A game struct
Core module to manage a game state.
state = %{ nodes: list of valid hook nodes hook_actions: a config fetched from remote node, it is list of actions that will be called when there is event fired }
Used for executing DB release tasks when run in production without Mix installed.
This is a behaviour that you can implement in lib/gen_game_mod/mod.ex
. Every functions in this module will be called when there are particular event in GenGame
.
Distributed storage with auto synchronization.
The entrypoint for defining your web interface, such as controllers, components, channels, and so on.
assigns: %{ match_id: string, match id username: string, username of connected user server_authoritative: [
This channel is used for create a game.