using UnityEngine; using YooAsset; namespace AOT.Boot { /// /// Boot 可序列化配置(挂在 BootDriver 上)。 /// [System.Serializable] public class BootSettings { [Tooltip("壳版本,对应提审包 appVersion")] public string AppVersion = "1.0.0"; [Tooltip("CDN 总控 version.json")] public string VersionUrl = "https://www.xworld.ren/wechat/version.json"; [Tooltip("CDN 根(version.json 未下发 cdnRoot 时回退;含 Package 名)")] public string DefaultCdnRoot = "https://www.xworld.ren/wechat/1.0.0/DefaultPackage"; [Tooltip("YooAsset 默认包名")] public string PackageName = "DefaultPackage"; [Tooltip("热更 DLL 在包内的定位地址")] public string HotUpdateDllLocation = "HotUpdate.Runtime"; [Tooltip("登录服 HTTP 根(/register /login)")] public string HttpBase = "https://game.xworld.ren"; [Tooltip("WebSocket 模板,{pid}/{token} 会被替换")] public string WsUrlTemplate = "wss://game.xworld.ren/ws?pid={pid}&token={token}"; [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; } }