using UnityEngine; using YooAsset; namespace AOT.Boot { /// /// Boot 可序列化配置(挂在 BootDriver 上)。 /// [System.Serializable] public class BootSettings { public const string ProductionVersionUrl = "https://www.xworld.ren/game/Friends/webgl/cdn/version.json"; public const string ProductionCdnRoot = "https://www.xworld.ren/game/Friends/webgl/yoo/DefaultPackage"; public const string ProductionHttpBase = "https://BuddyDefense.xworld.ren:15888"; public const string ProductionWsTemplate = "wss://BuddyDefense.xworld.ren:15888/ws?pid={pid}&token={token}"; [Tooltip("壳版本,对应提审包 appVersion")] public string AppVersion = "1.0.0"; [Tooltip("CDN 总控 version.json")] public string VersionUrl = ProductionVersionUrl; [Tooltip("CDN 根(version.json 未下发 cdnRoot 时回退;含 Package 名)")] public string DefaultCdnRoot = ProductionCdnRoot; [Tooltip("YooAsset 默认包名")] public string PackageName = "DefaultPackage"; [Tooltip("热更 DLL 在包内的定位地址")] public string HotUpdateDllLocation = "HotUpdate.Runtime"; [Tooltip("登录服 HTTP 根(/register /login)")] public string HttpBase = ProductionHttpBase; [Tooltip("WebSocket 模板,{pid}/{token} 会被替换")] public string WsUrlTemplate = ProductionWsTemplate; [Tooltip("业务 UI 当前仅支持 candy(糖果风);保留该字段兼容旧配置,其他值回退到 Candy。")] public string UiTheme = "candy"; [Tooltip("运行模式;编辑器默认 EditorSimulateMode;M1 Offline/Host 验证时切换")] public EPlayMode PlayMode = EPlayMode.EditorSimulateMode; [Tooltip("编辑器下跳过 YooAsset 补丁,直接反射加载已编译热更程序集(M0 默认开;M1 验证补丁时关掉)")] public bool EditorDirectHotUpdate = true; [Tooltip("version.json 拉取失败时是否允许使用 StreamingAssets 本地回退")] public bool AllowStreamingVersionFallback = true; } }