Initial commit: Client Doc docs Server Tools

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ud18010
2026-07-10 10:24:29 +08:00
co-authored by Cursor
commit 7e35d8da31
3374 changed files with 680813 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using System.Collections.Generic;
public class XNode
{
public string XID;
public string Node;
public string CDN;
public string Name;
}
public static class GlobalData
{
public static bool bWX;//是否微信小游戏内
public static bool bLocal = false;//是否测试内网
#if UNITY_EDITOR
public static bool bEditor = true;//是否编辑器
#else
public static bool bEditor = false;
#endif
public static string CurCDN = "http://127.0.0.1:15081/";//当前资源位置(CDN根)。默认本机,discovery 失败时回退到此,配合本机 Cdn.Runner 同机可用
public static string CurPlatform;//当前平台,pc android ios webgl
public static string CurXID;//当前节点(游戏),xid //影响资源位置
public static string CurNode;//当前节点(游戏),xid 或 http:// 或 xw://
public static string Token;//当前token
public const string LanDiscoveryToken = "xw-dev";//内网 DevDiscovery 鉴权 token,须与服务端 --devToken 一致
public const string ProductionResBase = "https://www.xworld.ren/game/60S/";//生产资源根:大厅走 <根>/XWorld/<platform>/,小游戏走 <根>/minigame/<id>/<ver>/(经 Caddy TLS
public const string ProductionGatewayUrl = "wss://game.xworld.ren/ws";//生产大厅/对局网关(WSS,经 Caddy 反代到内网 :5005ConnectLobby 会补 ?token=
public const string ProductionAuthBase = "https://game.xworld.ren";//登录/注册 HTTP 端点(与 WSS 同主机,经 Caddy)
public static Dictionary<string, XNode> XNodes = new Dictionary<string, XNode>();//当前节点列表
}