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

TextChatDeliveryRule

TextChatDeliveryRule = (world, sender, recipient) => boolean

A game’s rule for who receives a message: true to deliver it from sender to recipient. Each is an entity: a player’s player entity, or the entity an NPC message comes from. The room calls it on the world as the last step left it, read-only, once for each other player; it writes nothing.

Parameter Type
world World
sender Entity
recipient Entity

boolean