From 4e215f6a03280fc91b637044b07ba6551d042a9f Mon Sep 17 00:00:00 2001 From: Nytra <14206961+Nytra@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:23:28 +0100 Subject: [PATCH] fix async call list --- .../BindingGenerator.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ProjectObsidian.SourceGenerators/BindingGenerator.cs b/ProjectObsidian.SourceGenerators/BindingGenerator.cs index d369438..57d17b1 100644 --- a/ProjectObsidian.SourceGenerators/BindingGenerator.cs +++ b/ProjectObsidian.SourceGenerators/BindingGenerator.cs @@ -228,8 +228,15 @@ public override void VisitFieldDeclaration(FieldDeclarationSyntax node) TypedFieldDetection(type, name, "ValueOutput", "global::FrooxEngine.ProtoFlux.NodeValueOutput<{1}>", _outputCount); //impulses - if (!UntypedFieldDetection(type, name, "AsyncCall", "global::FrooxEngine.SyncRef", _impulseCount)) + if (type == "AsyncCall") + { + UntypedFieldDetection(type, name, "AsyncCall", "global::FrooxEngine.SyncRef", _impulseCount); + } + else if (type == "Call") + { UntypedFieldDetection(type, name, "Call", "global::FrooxEngine.SyncRef", _impulseCount); + } + UntypedFieldDetection(type, name, "Continuation", "global::FrooxEngine.SyncRef", _impulseCount); UntypedFieldDetection(type, name, "AsyncResumption", "global::FrooxEngine.SyncRef", _impulseCount); @@ -252,7 +259,14 @@ public override void VisitFieldDeclaration(FieldDeclarationSyntax node) //operation lists UntypedFieldDetection(type, name, "SyncOperationList", "global::FrooxEngine.SyncList", _operationListCount); - + + + //call lists + if (type == "CallList") + UntypedFieldDetection(type, name, "CallList", "global::FrooxEngine.SyncRefList", _impulseListCount); + else + UntypedFieldDetection(type, name, "AsyncCallList", "global::FrooxEngine.SyncRefList", _impulseListCount); + base.VisitFieldDeclaration(node); } public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node)