From b24933b1b7e2e7ab42abacfcae30168bc444de10 Mon Sep 17 00:00:00 2001 From: Gandifil Date: Sat, 25 Nov 2023 02:32:37 +0300 Subject: [PATCH] Add comments for collision actor. --- .../MonoGame.Extended.Collisions/ICollisionActor.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cs/MonoGame.Extended.Collisions/ICollisionActor.cs b/src/cs/MonoGame.Extended.Collisions/ICollisionActor.cs index e8f9516b..6a05592f 100644 --- a/src/cs/MonoGame.Extended.Collisions/ICollisionActor.cs +++ b/src/cs/MonoGame.Extended.Collisions/ICollisionActor.cs @@ -7,9 +7,21 @@ namespace MonoGame.Extended.Collisions /// 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); } }