asobi_world_chat (asobi v0.35.4)

View Source

Summary

Functions

channel_id(WorldId, _, _)

-spec channel_id(binary(), atom(), term()) -> binary().

init(WorldId, Config)

-spec init(binary(), map()) -> map().

player_joined(PlayerId, ZoneCoords, _)

-spec player_joined(binary(), {integer(), integer()}, map()) -> ok.

player_left(PlayerId, ZoneCoords, _)

-spec player_left(binary(), {integer(), integer()}, map()) -> ok.

player_zone_changed(PlayerId, OldZoneCoords, NewZoneCoords, GridSize, _)

-spec player_zone_changed(binary(),
                          {integer(), integer()},
                          {integer(), integer()},
                          non_neg_integer(),
                          map()) ->
                             ok.