asobi_player_session (asobi v0.35.4)

View Source

Summary

Functions

get_state(Pid)

-spec get_state(pid()) -> map().

handle_call(Request, From, State)

-spec handle_call(term(), gen_server:from(), map()) -> {reply, term(), map()}.

handle_cast(Msg, State)

-spec handle_cast(term(), map()) -> {noreply, map()}.

handle_info(Msg, State)

-spec handle_info(term(), map()) -> {noreply, map()} | {stop, term(), map()}.

init(_)

-spec init(map()) -> {ok, map()}.

set_zone(Pid, WorldPid, ZonePid)

-spec set_zone(pid(), pid(), pid() | undefined) -> ok.

start_link(PlayerId, WsPid)

-spec start_link(binary(), pid()) -> gen_server:start_ret().

stop(Pid)

-spec stop(pid()) -> ok.

terminate(Reason, _)

-spec terminate(term(), map()) -> ok.

update_presence(Pid, Status)

-spec update_presence(pid(), map()) -> ok.