3 ms·
If the client connects to the database directly, how is access control or cheating handled? UPDATE players SET gold = gold + 500 WHERE id = 12345;
by gcr 2y ago
If the client connects to the database directly, how is access control or cheating handled?
UPDATE players SET gold = gold + 500 WHERE id = 12345;
- apetresc 2y agoBased on the description, it’s because you don’t get raw SQL access; they say the game logic is embedded directly into the database and you interact with it through stored procedures. All the rules are enforced there instead of whatever API endpoint you would normally use.
- cloutiertyler 2y agoMutations through SQL are disallowed for clients. They must update state via "reducers" (aka RPC calls to the Wasm module).