Files
AIGame/AIServer/src/maintenance.hpp
T
udxandCursor c94b8fefeb 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>
2026-09-21 17:34:42 +08:00

15 lines
322 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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