3 Commits
Author SHA1 Message Date
cneicy 6bf333bd7f fix: download release SDK directly from Microsoft Blob
Publish UPM package / publish (push) Successful in 2s
Publish NuGet packages / publish (push) Canceled after 3s
2026-11-06 19:26:40 +08:00
cneicy 3b30587ea9 feat: update Godot integration and coordinated package dependencies 2026-11-06 19:13:22 +08:00
cneicy 2dae3e3890 fix(codegen): delegate event bridge weaving to shared processor
Publish UPM package / publish (push) Successful in 2s
Publish NuGet packages / publish (push) Successful in 3m59s
2026-09-29 10:14:48 +08:00
5 changed files with 26 additions and 15 deletions

No files matched your search

+2 -1
View File
@@ -63,7 +63,8 @@ jobs:
const release = metadata.releases.find(item => item.sdk?.version === sdkVersion);
const file = release?.sdk?.files?.find(item => item.rid === 'linux-x64' && item.name.endsWith('.tar.gz'));
if (!file) throw new Error(`Linux x64 SDK archive not found for ${sdkVersion}`);
const archiveResponse = await fetch(file.url);
const archiveUrl = `https://dotnetcli.blob.core.windows.net/dotnet/Sdk/${sdkVersion}/dotnet-sdk-${sdkVersion}-linux-x64.tar.gz`;
const archiveResponse = await fetch(archiveUrl);
if (!archiveResponse.ok) throw new Error(`SDK download failed: ${archiveResponse.status}`);
await writeFile('/tmp/dotnet-sdk.tar.gz', new Uint8Array(await archiveResponse.arrayBuffer()));
@@ -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)
@@ -5,16 +5,16 @@
<AssemblyName>ShrinkNetwork.Integration.EventBus</AssemblyName>
<RootNamespace>ShrinkNetwork.Integration</RootNamespace>
<PackageId>ShrinkSDK.Network.Integration.EventBus</PackageId>
<Version>0.2.0</Version>
<Version>0.2.6</Version>
<Description>ShrinkNetwork and EventBus generated bridge.</Description>
<ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\*.cs" />
<PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.1.0" />
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.2.0" />
<PackageReference Include="ShrinkSDK.EventBus" Version="2.1.0" />
<PackageReference Include="ShrinkSDK.Network" Version="0.3.0" />
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.1.0" PrivateAssets="compile;runtime;contentfiles;native" />
<PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.2.0" />
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.3.1" />
<PackageReference Include="ShrinkSDK.EventBus" Version="2.3.1" />
<PackageReference Include="ShrinkSDK.Network" Version="0.4.3" />
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.2.0" PrivateAssets="compile;runtime;contentfiles;native" />
</ItemGroup>
</Project>
+10
View File
@@ -70,3 +70,13 @@ service.BroadcastEventAsync(eventData);
```
远端事件重入 Bus 时会抑制回环转发。网络桥只观察 `EventBus` 全局宿主管理的 Bus;独立 `ShrinkEventBusHost` 不会被自动网络转发。
## 可复用能力
<!-- shrink:capabilities -->
Capability: 桥接网络事件广播、请求结果和版本化 delta
Aliases: 网络事件 广播 同步 delta
Limits: 仅传递显式合同;普通状态替换不适用于快照分片
Extension: ShrinkNetworkEvent 合同与桥
Evidence: [ShrinkNetworkEventBusBridge](ShrinkNetworkEventBusBridge.cs)
<!-- /shrink:capabilities -->
+6 -6
View File
@@ -1,15 +1,15 @@
{
"name": "com.cneicy.shrink-network-integration-eventbus",
"version": "0.2.0",
"version": "0.2.6",
"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-runtime-abstractions": "0.1.0"
"com.cneicy.shrink-network": "0.4.3",
"com.cneicy.shrink-context-core": "0.3.1",
"com.cneicy.shrink-eventbus": "2.3.1",
"com.cneicy.shrink-shared-codegen": "0.2.1",
"com.cneicy.shrink-runtime-abstractions": "0.2.0"
},
"keywords": [
"network",