feat(livestreamassist): add read-only WebSocket API

Add a Fleck/Newtonsoft.Json listener for local and LAN clients, with system methods, main-thread reflection reads, and ZipMod packaging of the two runtime DLLs. Ctrl+F8 statistics assist is unchanged. In-game and LAN acceptance remain pending.
This commit is contained in:
soarqin committed 2026-09-17 18:14:51 +08:00
1 parent ce9a4b73cd
commit 94254b8c28
16 files changed
+3300 -37

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
using System.Reflection;
using BepInEx;
using CommonAPI.Systems;
using LiveStreamAssist.Api;
using UnityEngine;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
@@ -19,6 +20,7 @@ public class LiveStreamAssist : BaseUnityPlugin
{
I18N.Init();
I18N.Add("KEYToggleLiveStreamAssist", "[LSA] Toggle live-stream statistics assist", "[LSA] \u5207\u6362\u76f4\u64ad\u7edf\u8ba1\u8f85\u52a9");
WebSocketApiFeature.BindConfig(Config);
ModFeatureRegistry.Discover(Assembly.GetExecutingAssembly());
I18N.Apply();
}