Islands Engine v0.2.35 Islands.Engine.Server 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 Types
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
init(arg)
View Sourceinit({String.t(), String.t(), Islands.Player.gender(), pid()}) :: {:ok, Islands.Game.t()}
Callback implementation for GenServer.init/1
.
Link to this function
reply(game, player_id)
View Sourcereply(Islands.Game.t(), Islands.PlayerID.t()) :: reply()
Link to this function
start_link(arg)
View Sourcestart_link({String.t(), String.t(), Islands.Player.gender(), pid()}) :: GenServer.on_start()