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
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <string>
namespace maintenance {
struct State {
bool enabled = false;
std::string message = "服务器维护中,请稍后再试。";
};
/// 读取 JSON:{"enabled":true,"message":"..."};文件不存在则 enabled=false。
State load(const std::string& path);
} // namespace maintenance