using System; namespace MonoGame.Extended.Collisions { /// /// An actor that can be collided with. /// public interface ICollisionActor { /// /// A name of layer, which will contains this actor. /// If it equals null, an actor will insert into a default layer /// string LayerName { get => null; } /// /// A bounds of an actor. It is using for collision calculating /// IShapeF Bounds { get; } /// /// It will called, when collision with an another actor fires /// /// Data about collision void OnCollision(CollisionEventArgs collisionInfo); } }