ShrinkSDK

Public Unity SDK packages and workspace. yeah, almost AI slop. ;)

com.cneicy.shrink-context-eventbus-adapter (0.2.5)

Published 2026-11-06 19:45:26 +08:00 by cneicy

Installation

registry=https://git.crash.work/api/packages/ShrinkSDK/npm/
npm install com.cneicy.shrink-context-eventbus-adapter@0.2.5
"com.cneicy.shrink-context-eventbus-adapter": "0.2.5"

About this package

把 ShrinkEventBus 订阅/注册包装为 ShrinkContext 可逆效应:订阅即效应,停用自动退订。

ShrinkContext.EventBusAdapter

ShrinkContext 与 ShrinkEventBus 的共享桥接层。

  • Unity:通过 Package Manager 安装 com.cneicy.shrink-context-eventbus-adapter。
  • Godot / .NET:安装 ShrinkSDK.Context.EventBusAdapter。
  • NuGet 打包工程位于 DotNet~/ShrinkSDK.Context.EventBusAdapter.csproj。

可复用能力

Capability: 把事件订阅绑定到 Context 可逆生命周期 Aliases: 订阅撤回 组件事件 effect Limits: 不撤回已经发生的业务事实;使用组件所属线程注册和撤回 Extension: ShrinkEventBusEffects 的生命周期扩展 Evidence: ShrinkEventBusEffects

Dependencies

Dependencies

ID Version
com.cneicy.shrink-context-core 0.3.1
com.cneicy.shrink-eventbus 2.3.1
com.cysharp.unitask 2.5.10

Keywords

context cordis eventbus effect
Details
npm
2026-11-06 19:45:26 +08:00
0
cneicy
latest
3.1 KiB
Assets (1)
Versions (5) View all
0.2.5 2026-11-06
0.2.4 2026-09-29
0.2.0 2026-09-05
0.1.1 2026-08-28
0.1.0 2026-08-26