Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

Reach

Which pages a room sends a trait to, of the pages that hold its entity: one closed set, set once with defineTrait’s reach. A page that does not hold the entity receives none of its traits, whatever their reach, as setVisibility and interest culling decide. As Unreal’s replication conditions and Unity’s NetworkVariableReadPermission, with an audience between one owner and everyone, which neither has.

Audience: "audience"

The pages of the players in the entity’s audience, which setAudience names: a team’s plan, a role the impostors share. It reaches no page until the audience is set.


Authority: "authority"

No page: the world that decides outcomes alone, a room’s or a game played alone, which has no server. What a rule reads and no page draws or predicts. The dump shows it. In development a system that reads it on a page throws.


Everyone: "everyone"

Every page that holds the entity: a score, a door’s state. The default, for a predicted trait too where it says so.


Local: "local"

No stream: the room and each page keep their own, such as a cast waiting on a walk, which the player’s page walks and the room walks too. No rollback restores it: what the player’s page must roll back is predicted.


Owner: "owner"

The page of the entity’s owner alone: the player for the player entity, the player at the top of an entity’s setOwner chain, else the player who controls it. The player’s hand of cards, bag and quest log. A predicted trait’s default.