Session

interface Session extends Host

A running session: the host the harness is built over, and what came with it.

devtools/src/session.ts:117

Members

canFlyreadonly

canFly: boolean

The trusted host capability: whether this host's walkers may fly. Never read off a save — a replaced world's walkers are given this one.

harnessreadonly

harness: GameHarness

nowreadonly

now: () → number | null

The host's clock, for the things here that measure rather than simulate.

Null where the host has none, and the terrain baseline then reports "not timed" rather than reaching for performance.now() itself — which nothing below apps/ is allowed to do.

renderreadonly

render: RenderHost

storereadonly

store: SaveStore

systemreadonly

system: StarSystem

The system loaded at open, and the body the ship was placed above.

targetreadonly

target: Body

worldreadonly

world: World

authority

authority() → AuthorityPort

Whoever owns the part of the simulation this client does not.

Always present: a solo player has a LocalAuthority, which is an implementation rather than the absence of one, and openSession supplies it when a caller does not.

controlPlayer

controlPlayer(id: EntityId) → void

Transfer control without replacing the world or rebuilding its adapters.

idEntityId
Undocumented

dispose

dispose() → void

player

player() → EntityId | null

The entity the camera follows.

pool

pool() → WorkerPool | null

replaceWorld

replaceWorld(world: World, player: EntityId | null) → void

Replace the running world (used by load).

worldWorld
Undocumented
playerEntityId | null
Undocumented