GameTable
One multiplayer game table. Put it on a synced entity (`TK.Table{...}` does) at the floor under the table's centre; it needs no sibling components. Every peer models the table, its seats, nameplates and turn indicator from the synced settings; the authority (the entity's owner, t…
tableKit.GameTable
One multiplayer game table. Put it on a synced entity (TK.Table{...} does) at the floor under the table's centre; it needs no sibling components. Every peer models the table, its seats, nameplates and turn indicator from the synced settings; the authority (the entity's owner, the room host for a scene table) assigns seats and writes the synced state. In play it shows a prompt by a free seat (E, pad A, tap), sits the player in a seated pose with their walk stood down and the table camera on, shows a "Your turn" banner, offers Watch when the table is full, and frees a seat when its player stands or leaves. Settings: title, style, shape, seats, nameplate, indicator, camera, spectatorCamera, banner, prompt, reach, colliders, pose.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
ensureListen( ) → void
Listen for requests sent to THIS table, from this component instance (a listener a component registers follows the instance, so a reloaded kit never leaves a listener bound to an older copy of the registry).
cfg( ) → any
isAuthority( ) → boolean
quatYaw(q: any) → number
| arg | type | description |
|---|---|---|
| q | any |
frame( ) → any
toWorld(f: any, lx: number, ly: number, lz: number) → any
| arg | type | description |
|---|---|---|
| f | any | |
| lx | number | |
| ly | number | |
| lz | number |
yawQuat(yaw: number) → void
| arg | type | description |
|---|---|---|
| yaw | number |
state( ) → any
The decoded state, read again the moment the synced field changes (so a read right after the authority's own write sees it).
payload(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
publish(s: any) → void
| arg | type | description |
|---|---|---|
| s | any |
perform(_self: any, op: string, a: any, from: number) → void
| arg | type | description |
|---|---|---|
| _self | any | |
| op | string | |
| a | any | |
| from | number |
request(op: string, a: any?) → void
| arg | type | description |
|---|---|---|
| op | string | |
| a | any? |
prune(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
despawn(e: any) → void
| arg | type | description |
|---|---|---|
| e | any |
ensureView( ) → void
followTable( ) → void
buildModel(c: any) → void
| arg | type | description |
|---|---|---|
| c | any |
setFitted(e: any, text: string, base: number, limit: number) → void
Write a label's text and shrink it until it fits `limit` metres wide (long names and statuses wrap onto a second line first).
| arg | type | description |
|---|---|---|
| e | any | |
| text | string | |
| base | number | |
| limit | number |
fitLabels( ) → void
label(name: string, t: any, x: number, y: number, z: number, yaw: number, billboard: boolean) → any
| arg | type | description |
|---|---|---|
| name | string | |
| t | any | |
| x | number | |
| y | number | |
| z | number | |
| yaw | number | |
| billboard | boolean |
buildLabels(c: any, s: any) → void
| arg | type | description |
|---|---|---|
| c | any | |
| s | any |
buildIndicator(c: any, s: any) → void
| arg | type | description |
|---|---|---|
| c | any | |
| s | any |
chimeForTurn(s: any) → void
The turn chime: once on this player's screen when the turn comes to them.
| arg | type | description |
|---|---|---|
| s | any |
moveIndicator(c: any, s: any, dt: number) → void
| arg | type | description |
|---|---|---|
| c | any | |
| s | any | |
| dt | number |
sitSpot(c: any, seat: number) → any
| arg | type | description |
|---|---|---|
| c | any | |
| seat | number |
poseBodies(c: any, s: any) → void
| arg | type | description |
|---|---|---|
| c | any | |
| s | any |
setCameraView(viewName: string, seat: number) → void
| arg | type | description |
|---|---|---|
| viewName | string | |
| seat | number |
restoreCamera( ) → void
lockControls(on: boolean) → void
| arg | type | description |
|---|---|---|
| on | boolean |
enterSeat(seat: number) → void
| arg | type | description |
|---|---|---|
| seat | number |
leaveSeat(oldSeat: number?) → void
| arg | type | description |
|---|---|---|
| oldSeat | number? |
startWatching( ) → void
stopWatching( ) → void
holdBody(c: any) → void
| arg | type | description |
|---|---|---|
| c | any |
cycleCamera( ) → void
nearest(c: any, s: any) → void
The seat (and distance) this player could take: the nearest free seat in reach.
| arg | type | description |
|---|---|---|
| c | any | |
| s | any |
lbl(text: string, style: any) → any return
| arg | type | description |
|---|---|---|
| text | string | |
| style | any |
col(style: any, kids: { any }?) → any return
| arg | type | description |
|---|---|---|
| style | any | |
| kids | { any }? |
row(style: any, kids: { any }?) → any return
| arg | type | description |
|---|---|---|
| style | any | |
| kids | { any }? |
keyCap(text: string, fs: number) → any
| arg | type | description |
|---|---|---|
| text | string | |
| fs | number |
button(text: string, cb: string, glyph: string, accent: string, fs: number, primary: boolean) → any
| arg | type | description |
|---|---|---|
| text | string | |
| cb | string | |
| glyph | string | |
| accent | string | |
| fs | number | |
| primary | boolean |
hudTree(c: any, s: any, promptSeat: number?, promptWatch: boolean) → any
| arg | type | description |
|---|---|---|
| c | any | |
| s | any | |
| promptSeat | number? | |
| promptWatch | boolean |
drawHud(c: any, s: any, promptSeat: number?, promptWatch: boolean) → void
| arg | type | description |
|---|---|---|
| c | any | |
| s | any | |
| promptSeat | number? | |
| promptWatch | boolean |
onCallback(id: string, _data: any) → void
| arg | type | description |
|---|---|---|
| id | string | |
| _data | any |
readState( ) → void
tick(dt: number, play: boolean) → void
| arg | type | description |
|---|---|---|
| dt | number | |
| play | boolean |
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
editorUpdate(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
nameOf( ) → string
The name this table answers to on every peer: the synced key TK.Table writes, else the entity's name (right on the peer that built the scene), else the title.
awake( ) → void
onDestroy( ) → void
receive(op: string, a: any, from: number) → void
A request from another player, queued for this table's own update.
| arg | type | description |
|---|---|---|
| op | string | |
| a | any | |
| from | number |
focusDistance( ) → void
isAuthority( ) → boolean return isAuthority
config( ) → any return cfg
frame( ) → any return frame
title( ) → string return public
seats( ) → any
Every seat: { [seat] = { peer, name, color, status, free } }.
seatCount( ) → number return Cat
mySeat( ) → number
isWatching( ) → boolean return watching end
isSeated(peer: number?) → boolean
Whether `peer` (this player when nil) sits at this table.
| arg | type | description |
|---|---|---|
| peer | number? |
turn( ) → number return state
seatOf(peer: number) → number
| arg | type | description |
|---|---|---|
| peer | number |
peerAt(seat: number) → number
| arg | type | description |
|---|---|---|
| seat | number |
sit(seat: number?) → void
| arg | type | description |
|---|---|---|
| seat | number? |
stand( ) → void
hudInset( ) → number
How far down this player's seated bar reaches when it sits at the top of the screen (screen points), so a game's own screen can start below it; 0 when the bar is elsewhere or not shown.
watch( ) → void
unwatch( ) → void
setTurn(seat: number) → void
| arg | type | description |
|---|---|---|
| seat | number |
nextTurn( ) → void
setStatus(seat: number, text: string?) → void
| arg | type | description |
|---|---|---|
| seat | number | |
| text | string? |
free(seat: number) → void
| arg | type | description |
|---|---|---|
| seat | number |
reset( ) → void
set(field: any, value: any?) → void
Change a setting on every screen: style, shape, seats, nameplate, indicator, camera, spectatorCamera, title, banner, prompt, pose.
| arg | type | description |
|---|---|---|
| field | any | |
| value | any? |
setCamera(viewName: string) → void
This player's camera view while seated or watching ("seat", "top", "orbit", "cinematic").
| arg | type | description |
|---|---|---|
| viewName | string |
camera( ) → string return myView end
surface( ) → any
The tabletop in the world: { centre = {x,y,z}, height, shape, radius, halfX, halfZ, extent = {x,z}, yaw, toWorld(lx, lz) -> {x,y,z} }.
toWorld(lx: number, lz: number) → void
| arg | type | description |
|---|---|---|
| lx | number | |
| lz | number |
seatTransform(seat: number) → any
A seat in the world: { position = {x,y,z} (the chair, on the floor), rotation (quaternion, facing the table), yaw, facing = {x,z}, front = {x,y,z} (on the tabletop in front of the seat), color }.
| arg | type | description |
|---|---|---|
| seat | number |
tableKit GameTable: one multiplayer game table with seats, nameplates, a turn indicator, a sit prompt, a seated pose, table cameras and spectators; seats assigned by one authority and freed when a player leaves.Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.