summaryrefslogtreecommitdiff
path: root/Thronefall_1_0/Thronefall/NGS.MeshFusionPro/JobsMovableMeshSTDFactory.cs
blob: 36402f5b37bcc8a06e16c6104fa62d63bb0b340e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
	}
}