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

This commit is contained in:
2026-09-29 10:14:48 +08:00
parent 66f17aae85
commit 2dae3e3890
4 changed files with 22 additions and 12 deletions
@@ -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)