mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
Add interface for space splitting and impls
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user