asobi_world_server (asobi v0.35.4)
View SourceA persistent, zoned world: the gen_statem behind large session games
(game_type = "world"). It partitions space into a grid of asobi_zone
processes, moves players between zones as they travel, runs a world-level
post_tick, and drives voting. Use it for MMO-style shared spaces; for
transient matches use asobi_match_server instead.
Summary
Functions
-spec callback_mode() -> gen_statem:callback_mode_result().
-spec cancel(pid()) -> ok.
-spec finished(gen_statem:event_type() | enter, term(), map()) -> gen_statem:state_enter_result(atom()).
-spec loading(gen_statem:event_type() | enter, term(), map()) -> gen_statem:state_enter_result(atom()) | gen_statem:event_handler_result(atom()).
-spec post_tick(pid(), non_neg_integer()) -> ok.
-spec running(gen_statem:event_type() | enter, term(), map()) -> gen_statem:state_enter_result(atom()).
-spec start_link(map()) -> gen_statem:start_ret().