diff options
Diffstat (limited to 'Thronefall_1_57/Thronefall/NGS.MeshFusionPro/JobsMovableMeshSTDFactory.cs')
| -rw-r--r-- | Thronefall_1_57/Thronefall/NGS.MeshFusionPro/JobsMovableMeshSTDFactory.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Thronefall_1_57/Thronefall/NGS.MeshFusionPro/JobsMovableMeshSTDFactory.cs b/Thronefall_1_57/Thronefall/NGS.MeshFusionPro/JobsMovableMeshSTDFactory.cs new file mode 100644 index 0000000..36402f5 --- /dev/null +++ b/Thronefall_1_57/Thronefall/NGS.MeshFusionPro/JobsMovableMeshSTDFactory.cs @@ -0,0 +1,18 @@ +namespace NGS.MeshFusionPro; + +public class JobsMovableMeshSTDFactory : IMovableCombinedMeshFactory +{ + private IMeshToolsFactory _tools; + + public JobsMovableMeshSTDFactory(IMeshToolsFactory tools) + { + _tools = tools; + } + + public CombinedMesh CreateMovableMesh(out ICombinedMeshMover mover) + { + CombinedMesh<MeshDataNativeArraysSTD> combinedMesh = new CombinedMesh<MeshDataNativeArraysSTD>(_tools.CreateMeshCombiner(), _tools.CreateMeshCutter()); + mover = new JobsMeshMoverSTD(combinedMesh.MeshDataInternal); + return combinedMesh; + } +} |
