Add MainHUD gameplay UI, net handshake updates, and server maintenance mode.

Introduce UiManager/MainHUD prefab flow, strengthen GameNet/WsClient, and add AIServer maintenance endpoint support.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-09-21 17:34:42 +08:00
co-authored by Cursor
parent 10d9b98637
commit c94b8fefeb
32 changed files with 1907 additions and 74 deletions
+3 -2
View File
@@ -8,8 +8,9 @@ C++ 登录 / WebSocket 网关(SQLite),协议兼容客户端 `HotUpdate.Net
| --- | --- | --- |
| POST | `/register` | `{"username","password"}` → `{"token","pid"}` |
| POST | `/login` | 同上 |
| GET | `/health` | 健康检查 |
| WS | `/ws?pid={pid}&token={token}` | 无 token → 401;支持 `hello`/`ping` 应用层应答 |
| GET | `/health` | 健康检查(含 `maintenance`) |
| GET | `/maintenance` | 维护开关状态 |
| WS | `/ws?pid={pid}&token={token}` | 无 token → 401;支持 `hello`/`ping`;维护中下发 `maintenance` 后断开 |
本地默认:`http://127.0.0.1:8080`、`ws://127.0.0.1:8080/ws?...`
生产由 Caddy TLS 反代到本进程(与 `game.xworld.ren` 部署方式一致)。