Add interface for space splitting and impls

This commit is contained in:
Gandifil
2023-11-22 23:22:40 +03:00
parent f0d558c8be
commit 01abb187cc
2 changed files with 95 additions and 0 deletions
@@ -0,0 +1,19 @@
using System.Collections.Generic;
namespace MonoGame.Extended.Collisions;
public interface ISpaceAlgorithm
{
void Insert(ICollisionActor actor);
bool Remove(ICollisionActor actor);
IEnumerable<ICollisionActor> Query(RectangleF boundsBoundingRectangle);
List<ICollisionActor>.Enumerator GetEnumerator();
/// <summary>
/// Restructure a space with new positions
/// </summary>
void Reset();
}