diff options
Diffstat (limited to 'Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicObjectsCombiner.cs')
| -rw-r--r-- | Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicObjectsCombiner.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicObjectsCombiner.cs b/Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicObjectsCombiner.cs deleted file mode 100644 index a7d6115..0000000 --- a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/DynamicObjectsCombiner.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Collections.Generic; - -namespace NGS.MeshFusionPro; - -public class DynamicObjectsCombiner : ObjectsCombiner<DynamicCombinedObject, DynamicCombineSource> -{ - private ICombinedMeshFactory _factory; - - private DynamicCombinedObjectMatcher _matcher; - - private int _vertexLimit; - - public DynamicObjectsCombiner(ICombinedMeshFactory factory, int vertexLimit) - { - _factory = factory; - _matcher = new DynamicCombinedObjectMatcher(vertexLimit); - _vertexLimit = vertexLimit; - } - - public override void AddSource(DynamicCombineSource source) - { - if (source.Base.CombineInfo.vertexCount < _vertexLimit) - { - base.AddSource(source); - } - } - - protected override void CombineSources(DynamicCombinedObject root, IList<DynamicCombineSource> sources) - { - root.Combine(sources); - } - - protected override DynamicCombinedObject CreateCombinedObject(DynamicCombineSource source) - { - return DynamicCombinedObject.Create(_factory, source.Base.RendererSettings); - } - - protected override CombinedObjectMatcher<DynamicCombinedObject, DynamicCombineSource> GetMatcher() - { - return _matcher; - } -} |
