summaryrefslogtreecommitdiff
path: root/Thronefall/NGS.MeshFusionPro/ICombineSource.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall/NGS.MeshFusionPro/ICombineSource.cs')
-rw-r--r--Thronefall/NGS.MeshFusionPro/ICombineSource.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Thronefall/NGS.MeshFusionPro/ICombineSource.cs b/Thronefall/NGS.MeshFusionPro/ICombineSource.cs
new file mode 100644
index 0000000..2b147b7
--- /dev/null
+++ b/Thronefall/NGS.MeshFusionPro/ICombineSource.cs
@@ -0,0 +1,25 @@
+using System;
+using UnityEngine;
+
+namespace NGS.MeshFusionPro;
+
+public interface ICombineSource
+{
+ Vector3 Position { get; }
+
+ Bounds Bounds { get; }
+
+ event Action<ICombinedObject, ICombinedObjectPart> onCombined;
+
+ event Action<ICombinedObject, string> onCombineError;
+
+ event Action<ICombinedObject> onCombineFailed;
+}
+public interface ICombineSource<TCombinedObject, TCombinedPart> : ICombineSource where TCombinedObject : ICombinedObject where TCombinedPart : ICombinedObjectPart
+{
+ event Action<TCombinedObject, TCombinedPart> onCombinedTyped;
+
+ event Action<TCombinedObject, string> onCombineErrorTyped;
+
+ event Action<TCombinedObject> onCombineFailedTyped;
+}