Ship the WeChat hot-update catalogs and the camp, TideWhale T2, UI atlas, and animation-lab work.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-10-24 18:04:41 +08:00
co-authored by Cursor
parent 6ebc9401ce
commit 45e62132c8
1432 changed files with 2971856 additions and 2798 deletions
@@ -0,0 +1,22 @@
using System.Runtime.InteropServices;
using UnityEngine.Scripting;
namespace AOT.Boot
{
/// <summary>AOT-owned native imports; hot-update code polls events on Unity's main thread.</summary>
[Preserve]
public static class WebSocketBridge
{
#if UNITY_WEBGL && !UNITY_EDITOR
[DllImport("__Internal")] public static extern int AIGame_WsCreate(string url);
[DllImport("__Internal")] public static extern string AIGame_WsPoll(int id);
[DllImport("__Internal")] public static extern void AIGame_WsSend(int id, string text);
[DllImport("__Internal")] public static extern void AIGame_WsDispose(int id);
#else
public static int AIGame_WsCreate(string url) => 0;
public static string AIGame_WsPoll(int id) => null;
public static void AIGame_WsSend(int id, string text) { }
public static void AIGame_WsDispose(int id) { }
#endif
}
}