diff --git a/server/nakama/lua/README.md b/server/nakama/lua/README.md index 560b569..88325da 100644 --- a/server/nakama/lua/README.md +++ b/server/nakama/lua/README.md @@ -1,6 +1,6 @@ # Tekton Nakama Lua Server API Reference -> Auto-generated from source code. For AI agents — call these RPCs without reading Lua. +> Auto-generated from source code. For AI agents -- call these RPCs without reading Lua. ## Table of Contents @@ -40,7 +40,7 @@ nk.leaderboard_create("global_high_score", true, "desc", "best", nil, {}) ``` -Creates native leaderboard `"global_high_score"` on module load (also created in `leaderboard.lua` — pcall wraps both so duplicate is safe). +Creates native leaderboard `"global_high_score"` on module load (also created in `leaderboard.lua` -- pcall wraps both so duplicate is safe). --- @@ -96,7 +96,7 @@ Resolves a friendly room name (e.g. `"social_global"`) to a hashed Nakama channe |---|---|---| | `channel_id` | string | Raw channel ID or friendly room name | -**Returns:** `string` — resolved channel ID (passes through if already hashed, i.e. contains `"."`) +**Returns:** `string` -- resolved channel ID (passes through if already hashed, i.e. contains `"."`) **Logic:** If no `"."` in value, calls `nk.channel_id_build("", name, CHANNEL_TYPE_ROOM)`. --- @@ -129,9 +129,9 @@ Resolves a friendly room name (e.g. `"social_global"`) to a hashed Nakama channe | `role` | string | Role from metadata (`"player"` default) | **Errors:** -- `"Account not found"` — user doesn't exist -- `"Account banned until