fix: add some missing API methods, ref: NOISSUE

This commit is contained in:
Simon Diesenreiter 2024-12-06 00:33:37 +01:00
parent 1b2e9ad1ee
commit fc137ebd03

View File

@ -123,7 +123,7 @@ public abstract class DataSetManipulatorBase<TCollectedType, TDataType, TIndexTy
return results;
}
public List<DirectionalSearchResult<TIndexType>> FindInSet(List<TDataType> data)
public List<DirectionalSearchResult<TIndexType>> FindInSet(List<TDataType> data, Direction directions)
{
var result = new List<DirectionalSearchResult<TIndexType>>();
@ -131,11 +131,16 @@ public abstract class DataSetManipulatorBase<TCollectedType, TDataType, TIndexTy
var startingPoints = this.FindInSet(data[0]);
foreach (var startingPoint in startingPoints)
{
foreach (var results in this.FindAtPosition(startingPoint.DataIndex, data))
foreach (var results in this.FindAtPosition(startingPoint.DataIndex, data, directions))
{
result.AddRange(results);
}
}
return result;
}
public List<DirectionalSearchResult<TIndexType>> FindInSet(List<TDataType> data)
{
return this.FindInSet(data, this.ValidDirections());
}
}