Add hot-update boot pipeline, UI bundles/atlas assets, and design docs.

Ignore AIClient/Library and AIClient/HybridCLRData permanently; include HybridCLR/YooAsset project setup and UI tooling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-09-21 16:02:58 +08:00
co-authored by Cursor
parent f3f66ab063
commit b7a0bbcb89
279 changed files with 27332 additions and 14 deletions
@@ -0,0 +1,39 @@
using UnityEngine;
using YooAsset;
namespace AOT.Boot
{
/// <summary>
/// Boot 可序列化配置(挂在 BootDriver 上)。
/// </summary>
[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("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;
}
}