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

readInterest

readInterest(world): InterestStatus

Whether this world culls by interest, and how far it reaches: on a page, what its room’s welcome said, with how many entities still wait to reach it; on a room’s world, its setting; on a game played alone, culling off. A game written for culling reads it to say what it can promise, such as a nearest-enemy scan within the radius alone.

Parameter Type
world World

InterestStatus

const interest = readInterest(world);
const reach = interest.culling ? interest.radius : Infinity;