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:
+3
-2
@@ -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` 部署方式一致)。
|
||||
|
||||
Reference in New Issue
Block a user