asobi_terrain_store (asobi v0.35.4)

View Source

Summary

Functions

evict_chunk(Pid, Coords)

-spec evict_chunk(pid(), {integer(), integer()}) -> ok.

get_chunk(Pid, Coords)

-spec get_chunk(pid(), {integer(), integer()}) -> {ok, binary()} | {error, term()}.

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(Info, State)

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

init(Opts)

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

preload_chunks(Pid, CoordsList)

-spec preload_chunks(pid(), [{integer(), integer()}]) -> ok.

start_link(Opts)

-spec start_link(map()) -> gen_server:start_ret().

stats(Pid)

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

terminate(Reason, _)

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