mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
Add comments for collision actor.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user