From 4f4cc4a0c9d1658469f6736f5ad90c3a21e39d38 Mon Sep 17 00:00:00 2001 From: Nytra <14206961+Nytra@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:02:22 +0100 Subject: [PATCH 1/2] Add async operations --- .../BindingGenerator.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ProjectObsidian.SourceGenerators/BindingGenerator.cs b/ProjectObsidian.SourceGenerators/BindingGenerator.cs index d369438..68dd225 100644 --- a/ProjectObsidian.SourceGenerators/BindingGenerator.cs +++ b/ProjectObsidian.SourceGenerators/BindingGenerator.cs @@ -237,22 +237,26 @@ public override void VisitFieldDeclaration(FieldDeclarationSyntax node) TypedFieldDetection(type, name, "GlobalRef", "global::FrooxEngine.SyncRef>", _globalRefCount); //operations - UntypedFieldDetection(type, name, "Operation", "global::FrooxEngine.ProtoFlux.SyncNodeOperation", _operationCount); - + if (type == "Operation") + UntypedFieldDetection(type, name, "Operation", "global::FrooxEngine.ProtoFlux.SyncNodeOperation", _operationCount); + if (type == "AsyncOperation") + UntypedFieldDetection(type, name, "Operation", "global::FrooxEngine.ProtoFlux.AsyncNodeOperation", _operationCount); + //lists - + //input lists TypedFieldDetection(type, name, "ValueInputList", "global::FrooxEngine.SyncRefList>", _inputListCount); - + //output lists TypedFieldDetection(type, name, "ObjectInputList", "global::FrooxEngine.SyncRefList>", _outputListCount); - + //impulse lists UntypedFieldDetection(type, name, "ContinuationList", "global::FrooxEngine.SyncRefList", _impulseListCount); - + //operation lists + UntypedFieldDetection(type, name, "AsyncOperationList", "global::FrooxEngine.SyncList", _operationListCount); UntypedFieldDetection(type, name, "SyncOperationList", "global::FrooxEngine.SyncList", _operationListCount); - + base.VisitFieldDeclaration(node); } public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node) From 03354d1bd8ee6d9fa8e86430a412ebffdb61224e Mon Sep 17 00:00:00 2001 From: Nytra <14206961+Nytra@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:04:01 +0100 Subject: [PATCH 2/2] fix async operation --- ProjectObsidian.SourceGenerators/BindingGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectObsidian.SourceGenerators/BindingGenerator.cs b/ProjectObsidian.SourceGenerators/BindingGenerator.cs index 68dd225..7280155 100644 --- a/ProjectObsidian.SourceGenerators/BindingGenerator.cs +++ b/ProjectObsidian.SourceGenerators/BindingGenerator.cs @@ -240,7 +240,7 @@ public override void VisitFieldDeclaration(FieldDeclarationSyntax node) if (type == "Operation") UntypedFieldDetection(type, name, "Operation", "global::FrooxEngine.ProtoFlux.SyncNodeOperation", _operationCount); if (type == "AsyncOperation") - UntypedFieldDetection(type, name, "Operation", "global::FrooxEngine.ProtoFlux.AsyncNodeOperation", _operationCount); + UntypedFieldDetection(type, name, "AsyncOperation", "global::FrooxEngine.ProtoFlux.AsyncNodeOperation", _operationCount); //lists