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