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

PlayerTrait

const PlayerTrait: CoreTrait<{ account: string; avatar: string; name: string; role: Role; seat: number; }>

Who a player is: her account, her name, her seat, her role and her avatar. Every page in the room receives it, so a scoreboard reads every player. The core writes it at the join; read it with readTrait(player, PlayerTrait).