asobi_zone_snapshotter (asobi v0.35.4)

View Source

Summary

Functions

delete_world(WorldId)

-spec delete_world(binary()) -> ok.

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(_)

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

load_snapshot(WorldId, _)

-spec load_snapshot(binary(), {integer(), integer()}) ->
                       {ok, map()} | {error, not_found} | {error, term()}.

load_snapshots(WorldId)

-spec load_snapshots(binary()) -> {ok, map()} | {error, term()}.

snapshot(Data)

-spec snapshot(map()) -> ok.

snapshot_sync(Data)

-spec snapshot_sync(map()) -> ok.

start_link()

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