summaryrefslogtreecommitdiff
path: root/Thronefall_1_57/Decompile/NGS.MeshFusionPro/JobsMovableMeshLWFactory.cs
blob: 47909767fa77e6d2fabe62b5071cb6245ac04fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
	}
}