mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
23 lines
906 B
C#
23 lines
906 B
C#
using GorgonLibrary;
|
|
using SS14.Shared.GameObjects;
|
|
using System.Drawing;
|
|
|
|
namespace SS14.Client.Interfaces.Collision
|
|
{
|
|
public interface ICollisionManager
|
|
{
|
|
/// <summary>
|
|
/// Checks to see if the specified collision rectangle collides with any of the colliders under management.
|
|
/// Also fires the OnCollide event of the first managed collidable to intersect with the collider.
|
|
/// </summary>
|
|
/// <param name="collider">Collision rectangle to check</param>
|
|
/// <returns>true if collides, false if not</returns>
|
|
bool IsColliding(RectangleF collider);
|
|
|
|
bool TryCollide(Entity collider);
|
|
bool TryCollide(Entity collider, Vector2D offset, bool bump = true);
|
|
void AddCollidable(ICollidable collidable);
|
|
void RemoveCollidable(ICollidable collidable);
|
|
void UpdateCollidable(ICollidable collidable);
|
|
}
|
|
} |