diff --git a/CodeGen/Editor/NetworkEventILPostProcessor.cs b/CodeGen/Editor/NetworkEventILPostProcessor.cs index 6cf8e60..48afe49 100644 --- a/CodeGen/Editor/NetworkEventILPostProcessor.cs +++ b/CodeGen/Editor/NetworkEventILPostProcessor.cs @@ -11,8 +11,8 @@ namespace ShrinkNetwork.Integration.CodeGen { public override ILPostProcessor GetInstance() => this; - public override bool WillProcess(ICompiledAssembly compiledAssembly) => - UnityShrinkCodeGenAdapter.ReferencesAny(compiledAssembly, "ShrinkNetwork.Integration.EventBus"); + // ShrinkRegistryILPostProcessor owns the complete pass, including event bindings. + public override bool WillProcess(ICompiledAssembly compiledAssembly) => false; public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly) => WillProcess(compiledAssembly) diff --git a/DotNet~/ShrinkSDK.Network.Integration.EventBus.csproj b/DotNet~/ShrinkSDK.Network.Integration.EventBus.csproj index f54769c..0f994aa 100644 --- a/DotNet~/ShrinkSDK.Network.Integration.EventBus.csproj +++ b/DotNet~/ShrinkSDK.Network.Integration.EventBus.csproj @@ -5,16 +5,16 @@ ShrinkNetwork.Integration.EventBus ShrinkNetwork.Integration ShrinkSDK.Network.Integration.EventBus - 0.2.0 + 0.2.5 ShrinkNetwork and EventBus generated bridge. true - - - - + + + + diff --git a/README.md b/README.md index 964acac..1498f5a 100644 --- a/README.md +++ b/README.md @@ -70,3 +70,13 @@ service.BroadcastEventAsync(eventData); ``` 远端事件重入 Bus 时会抑制回环转发。网络桥只观察 `EventBus` 全局宿主管理的 Bus;独立 `ShrinkEventBusHost` 不会被自动网络转发。 + +## 可复用能力 + + +Capability: 桥接网络事件广播、请求结果和版本化 delta +Aliases: 网络事件 广播 同步 delta +Limits: 仅传递显式合同;普通状态替换不适用于快照分片 +Extension: ShrinkNetworkEvent 合同与桥 +Evidence: [ShrinkNetworkEventBusBridge](ShrinkNetworkEventBusBridge.cs) + diff --git a/package.json b/package.json index fc9df8b..0989dc7 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { "name": "com.cneicy.shrink-network-integration-eventbus", - "version": "0.2.0", + "version": "0.2.5", "displayName": "ShrinkNetwork - EventBus Integration", "description": "ShrinkNetwork 与 ShrinkEventBus 2.0 的生成式桥接层,让 IShrinkEvent 网络事件可广播、裁决并在远端重新进入命名 Bus。", "unity": "2022.3", "dependencies": { - "com.cneicy.shrink-network": "0.3.0", - "com.cneicy.shrink-context-core": "0.2.0", - "com.cneicy.shrink-eventbus": "2.1.0", - "com.cneicy.shrink-shared-codegen": "0.1.1", + "com.cneicy.shrink-network": "0.4.2", + "com.cneicy.shrink-context-core": "0.3.0", + "com.cneicy.shrink-eventbus": "2.2.2", + "com.cneicy.shrink-shared-codegen": "0.2.1", "com.cneicy.shrink-runtime-abstractions": "0.1.0" }, "keywords": [