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

CoreTrait

A trait the core writes and a game reads: PlayerTrait, ConnectionTrait and PlayerSaveTrait on a player entity. Koota’s own functions refuse it, so no system or hook writes it by accident. Read it with readTrait(player, PlayerTrait), hasTrait, useTrait, or readEach over the engine’s createQuery.

Type Parameter Default type
S extends Schema any
Property Modifier Type
[coreBrand] readonly (schema) => S