feat(sdk): migrate to EventBus 2.0

Replace the legacy EventBase runtime with generated multi-bus bindings and explicit scheduling. Migrate app, data, network, demo, and mod consumers; add generated network-event registration and owner-scoped mod content overrides.
This commit is contained in:
2026-08-26 01:15:48 +08:00
parent 67d32795c4
commit ad5a7b68a3
129 changed files with 5071 additions and 5584 deletions
@@ -27,14 +27,14 @@ namespace ShrinkNetwork.Integration
}
public static UniTask PublishEventAsync<TEvent>(this ShrinkNetworkSession session, TEvent eventArgs, string? route = null)
where TEvent : EventBase, IShrinkNetworkMessage
where TEvent : IShrinkEvent, IShrinkNetworkMessage
{
return ShrinkNetworkEventBusBridge.PublishAsync(session, eventArgs, route);
}
public static UniTask BroadcastEventAsync<TEvent>(this ShrinkNetworkService service, TEvent eventArgs,
Func<ShrinkNetworkSession, bool>? sessionFilter = null, string? route = null)
where TEvent : EventBase, IShrinkNetworkMessage
where TEvent : IShrinkEvent, IShrinkNetworkMessage
{
if (service == null)
throw new ArgumentNullException(nameof(service));
@@ -59,7 +59,7 @@ namespace ShrinkNetwork.Integration
this ShrinkNetworkSession session,
TEvent eventArgs,
ShrinkRpcCallOptions? options = null)
where TEvent : EventBase, IShrinkNetworkRequest
where TEvent : IShrinkResultEvent<EventResult>, IShrinkNetworkRequest
{
var response = await ShrinkNetworkEventBusBridge.RequestResultAsync(session, eventArgs, options);
return ShrinkNetworkEventRequestOutcome.FromResponse(response);