Skip to content
Ironlark is in closed pre-alpha. Join the Discord for access.

spawn

Part of the host contract in host.wit. Placement of arriving participants. Only the session’s gamemode may command it; anyone else is refused with the answer, not in a log. These are commands rather than a setting: what the session does with placement will grow, and a frozen status could not grow with it.

Imported by the server world (server-mod) only.

A refusal is the error record.

enable-auto: async func() -> result<_, error>;

The host places every arrival in a body of its own accord. This is the state a session starts in — on unless a gamemode turns it off. Refuses any caller that is not the session’s gamemode.

disable-auto: async func() -> result<_, error>;

The host stops placing arrivals, leaving them to the gamemode — typically entity.spawn followed by entity.control from an on-join handler. Nobody already in the session moves. Refuses any caller that is not the session’s gamemode.