kalevala v0.1.0 Kalevala.Character.Presence behaviour View Source

Track the presence of online characters

Link to this section Summary

Functions

Load all online characters

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Start tracking a character (and it's foreman process)

Callbacks

Notify the callback module that a character is offline

Notify the callback module that a character is online

Link to this section Functions

Load all online characters

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Start tracking a character (and it's foreman process)

Link to this section Callbacks

Link to this callback

offline(arg1)

View Source
offline(Character.t()) :: :ok

Notify the callback module that a character is offline

Link to this callback

online(arg1)

View Source
online(Character.t()) :: :ok

Notify the callback module that a character is online