Add comments for collision actor.

This commit is contained in:
Gandifil
2023-11-25 02:32:37 +03:00
parent b02f5f42c6
commit b24933b1b7
@@ -7,9 +7,21 @@ namespace MonoGame.Extended.Collisions
/// </summary>
public interface ICollisionActor
{
/// <summary>
/// A name of layer, which will contains this actor.
/// If it equals null, an actor will insert into a default layer
/// </summary>
string LayerName { get => null; }
/// <summary>
/// A bounds of an actor. It is using for collision calculating
/// </summary>
IShapeF Bounds { get; }
/// <summary>
/// It will called, when collision with an another actor fires
/// </summary>
/// <param name="collisionInfo">Data about collision</param>
void OnCollision(CollisionEventArgs collisionInfo);
}
}