Colyseus-szinkronizált állapot
Elválasztja a tartós meccsállapotot a rövid effektektől. Segít a későn érkezőnek felépíteni az aktuális világot, miközben a privát mezők és figyelők láthatósága, élettartama rendezett.
colyseus-schema-state
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha szinkronizált entitást, privát mezőt vagy újracsatlakozást túlélő kliensfigyelőt készítesz.
Miben segít neked?
- A telepített csomagverzióhoz igazítja a Schema szintaxisát.
- Elkülöníti az egyszeri eseményt az összevont mezőfrissítéstől.
- Stabil entitáskulcsokat, privát láthatóságot és visszahívás-takarítást határoz meg.
Például ezt kérheted
Az arénába egy torony ledőlése után érkezik néző. Kapja meg a ledőlt tornyot és aktuális pontokat, de a régi robbanások ne okozzanak új sebzést. A privát lapok maradjanak rejtve, ki- és visszalépéskor pedig ne duplázódjanak az állapotfigyelők.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Colyseus — schema state
Use when changing Colyseus Schema state, client callbacks, visibility or patch bandwidth.
Version and project gate
Inspect Server, client SDK and @colyseus/schema versions, TypeScript/decorator configuration, room registrations, auth hooks, patch/simulation rates, transport, deployment topology and persistence adapters. The 0.17 reconnection lifecycle must not be assumed for older versions. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Pin schema syntax to the installed package. Distinguish transient events from current replicated fields because a patch interval may coalesce intermediate mutations. Design stable entity keys and per-client visibility. Register and dispose client callbacks with room ownership.
Deliver
A state/visibility map and synchronized client view with explicit event-versus-state semantics. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Do not encode every transient hit by repeatedly mutating a field whose intermediate values may never reach the client.
Acceptance scenario
Join after several state changes, remove an entity, hide private state from another player and reconnect with a full snapshot. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Relay. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Csomagban lévő fájlok 1
SKILL.md
