Islands.Engine.GameServer (Islands Engine v0.2.45) View Source
A server process that holds a game
struct as its state.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
init( {Islands.Game.name(), Islands.Player.name(), Islands.Player.gender(), pid()} ) :: {:ok, Islands.Game.t(), timeout()}
Callback implementation for GenServer.init/1
.
Specs
save(Islands.Game.t()) :: Islands.Game.t()
Specs
start_link( {Islands.Game.name(), Islands.Player.name(), Islands.Player.gender(), pid()} ) :: GenServer.on_start()
Specs
via(Islands.Game.name()) :: {:global, tuple()}