asobi_zone (asobi v0.35.4)
View SourceOne spatial partition of an asobi_world_server. A gen_server that owns
the entities in its cell of the grid, ticks their simulation, applies
player input, manages interest (subscribers), and answers spatial queries
via asobi_spatial. Zones are created and reaped lazily as players move.
Summary
Functions
-spec get_subscriber_count(pid()) -> non_neg_integer().
-spec handle_call(term(), gen_server:from(), map()) -> {reply, term(), map()}.
-spec reap(pid()) -> ok.
-spec start_link(map()) -> gen_server:start_ret().
-spec tick(pid(), non_neg_integer()) -> ok.