summaryrefslogtreecommitdiff
path: root/Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2024-05-19 17:03:57 +0800
committerchai <215380520@qq.com>2024-05-19 17:03:57 +0800
commitcf58771365b5953c6eac548b172aae880d1f0acd (patch)
treea49757a4b5c447cbf877584d482367a6bfe33b10 /Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs
parenteed315deae356ddfb17f28305e7cde6cdfc43313 (diff)
* rename
Diffstat (limited to 'Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs')
-rw-r--r--Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs43
1 files changed, 0 insertions, 43 deletions
diff --git a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs b/Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs
deleted file mode 100644
index 850efd8..0000000
--- a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/CombinedMeshFactory.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using UnityEngine;
-
-namespace NGS.MeshFusionPro;
-
-public class CombinedMeshFactory : ICombinedMeshFactory
-{
- private IMeshToolsFactory _tools;
-
- private IMovableCombinedMeshFactory _movableMeshFactory;
-
- public CombinedMeshFactory(MeshType meshType, CombineMethod combineMethod, MoveMethod moveMethod = MoveMethod.Simple)
- {
- if (meshType == MeshType.Standard)
- {
- _tools = new SimpleToolsSTDFactory();
- if (moveMethod == MoveMethod.Simple)
- {
- _movableMeshFactory = new SimpleMovableMeshSTDFactory(_tools);
- }
- else
- {
- _movableMeshFactory = new JobsMovableMeshSTDFactory(_tools);
- }
- return;
- }
- _tools = new SimpleToolsLWFactory();
- if (moveMethod == MoveMethod.Simple)
- {
- Debug.Log("Simple mover not implemented yet for lightweight meshes. Jobs mover will be used instead");
- }
- _movableMeshFactory = new JobsMovableMeshLWFactory(_tools);
- }
-
- public CombinedMesh CreateCombinedMesh()
- {
- return new CombinedMesh(_tools.CreateMeshCombiner(), _tools.CreateMeshCutter());
- }
-
- public CombinedMesh CreateMovableCombinedMesh(out ICombinedMeshMover mover)
- {
- return _movableMeshFactory.CreateMovableMesh(out mover);
- }
-}