6fcf7f82712be343d6b165e0198b315b252e0fff
token.create/update/remove (GM) and token.move (controller, or GM) through moverules: the uniform nack for locked/over-cap/collision and for an out-of-bounds GM move, one not-allowed code for a player's unknown and not-yours targets, not-found for the GM; accepted moves are persisted with NORMAL durability and the mover's vision recomputed. token.update honours kind, both names, controller, gm_only, flags and vision_radius, and refuses character_id until slice 8. connect now sends hello, the GM walls snapshot and the 6.3 token half (vision, explored full, tokens) under the global lock, so hello is always the first frame and the resync is the diff base. Egress runs under the same lock, per mutation, so no two threads touch a connection's known table and an unnamed player is never fed state. door.set applies the 5.5 push: the move rules compute the new positions against the pre-write state, the positions are persisted in one transaction, then memory and vision follow (stuck/squeezed are slice 7). player.remove hands the controlled tokens to the GM in memory as the FK already does in the DB.
Description
No description provided
9.2 MiB
Languages
JavaScript
38.4%
Nim
38.3%
TypeScript
20.9%
Shell
1.9%
CSS
0.5%