Verziózott Nakama-tárolás
Védi a játékosadatot az ütköző módosítástól és hibás hozzáféréstől. Tulajdont és verzióellenőrzést rendel hozzá, elkülönítve a hiteles felszerelést a játékos által írható beállításoktól.
nakama-storage-versions
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha készlet, beállítás vagy tartós objektum eltérő kliensjogot és ütközéskezelést igényel.
Miben segít neked?
- Meghatározza a gyűjteményt, kulcsot, tulajdonost és olvasási-írási jogot.
- Verziófeltétellel utasítja el az ütköző készletfrissítést.
- Elkülöníti a hiteles jutalmat a kliens által módosítható beállítástól.
Például ezt kérheted
Két eszköz egyszerre használja el az utolsó gyógyitalt. A tárolt felszerelésverzióval észleld az ütközést, engedett újrapróbálás előtt olvass friss adatot, és maradjon helyes a darabszám. Egy külön beállításmódosítás ne adhasson jogot érme vagy felszerelés átírására.
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
Nakama — storage versions
Use when implementing Nakama player data, inventory, save storage or concurrent writes.
Version and project gate
Inspect Nakama server and client SDK versions, chosen Go/TypeScript/Lua runtime, compiled module deployment, database topology, match handlers, RPC registrations, auth/session handling, storage collections and permission rules. 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
Declare collection/key/owner and read/write permissions for every object. Use version preconditions or the documented atomic operations to protect concurrent changes. Validate server-side mutations and define schema migration and missing-object behavior. Keep trusted rewards separate from client-editable preferences.
Deliver
A storage/permission table and a race-aware mutation contract. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Owner-write permission permits the owner’s client to edit the object; it is unsuitable for trusted rewards without server validation.
Acceptance scenario
Race two inventory updates, use a stale version and attempt a cross-user read/write with each permission combination. 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 Kairo. 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
