Log inGet started
World

Save Point

Branchmain
Branchesmain
Commit8937fc8d08

README.md

seats

What this peer knows about every Seat (seating.Seat): which seat the local player sits on, the seat each avatar sits on as the room heard it, and which free seat is nearest (the one seat that shows the "Sit" prompt). Seat components keep it up to date; other code reads it.

local seats = require("seating.seats")
seats.isSeatedLocal()      -- is the local player sitting?
seats.localSeat()          -- the seat entity they sit on, or nil
seats.seatOf(avatar)       -- the seat entity any avatar sits on, or nil
seats.occupantOf(seatId)   -- the avatar on a seat, or nil
seats.all()                -- every Seat entity this peer runs