From cf58771365b5953c6eac548b172aae880d1f0acd Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Sun, 19 May 2024 17:03:57 +0800 Subject: * rename --- .../NGS.MeshFusionPro/DynamicCombineSource.cs | 70 ---------------------- 1 file changed, 70 deletions(-) delete mode 100644 Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicCombineSource.cs (limited to 'Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicCombineSource.cs') diff --git a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicCombineSource.cs b/Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicCombineSource.cs deleted file mode 100644 index dcbf244..0000000 --- a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicCombineSource.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using UnityEngine; - -namespace NGS.MeshFusionPro; - -public class DynamicCombineSource : ICombineSource, ICombineSource -{ - private CombineSource _base; - - public CombineSource Base => _base; - - public Vector3 Position => _base.Position; - - public Bounds Bounds => _base.Bounds; - - public event Action onCombined; - - public event Action onCombineError; - - public event Action onCombineFailed; - - public event Action onCombinedTyped; - - public event Action onCombineErrorTyped; - - public event Action onCombineFailedTyped; - - public DynamicCombineSource(GameObject go, int submeshIndex = 0) - { - _base = new CombineSource(go, submeshIndex); - } - - public DynamicCombineSource(Mesh mesh, MeshRenderer renderer, int submeshIndex = 0) - { - _base = new CombineSource(mesh, renderer, submeshIndex); - } - - public DynamicCombineSource(MeshCombineInfo info, RendererSettings settings) - { - _base = new CombineSource(info, settings); - } - - public DynamicCombineSource(MeshCombineInfo info, RendererSettings settings, Bounds bounds) - { - _base = new CombineSource(info, settings, bounds); - } - - public void Combined(DynamicCombinedObject root, DynamicCombinedObjectPart part) - { - this.onCombined?.Invoke(root, part); - this.onCombinedTyped?.Invoke(root, part); - } - - public void CombineError(DynamicCombinedObject root, string errorMessage) - { - if (this.onCombineError == null && this.onCombineErrorTyped == null) - { - Debug.Log("Error during combine " + root.name + ", reason :" + errorMessage); - return; - } - this.onCombineError?.Invoke(root, errorMessage); - this.onCombineErrorTyped?.Invoke(root, errorMessage); - } - - public void CombineFailed(DynamicCombinedObject root) - { - this.onCombineFailed?.Invoke(root); - this.onCombineFailedTyped?.Invoke(root); - } -} -- cgit v1.1-26-g67d0