From 36d9b3084a73108c6b63dbab698f8d4638cabd07 Mon Sep 17 00:00:00 2001 From: Macocian Alexandru Victor Date: Thu, 20 Mar 2025 15:41:30 +0100 Subject: [PATCH] Change CollisionEventArgs settter to init require (#978) Closes #977 --- source/MonoGame.Extended/Collisions/CollisionEventArgs.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs b/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs index ca401dff..a21418c8 100644 --- a/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs +++ b/source/MonoGame.Extended/Collisions/CollisionEventArgs.cs @@ -12,7 +12,7 @@ namespace MonoGame.Extended.Collisions /// /// Gets the object being collided with. /// - public ICollisionActor Other { get; internal set; } + public required ICollisionActor Other { get; init; } /// /// Gets a vector representing the overlap between the two objects. @@ -21,6 +21,6 @@ namespace MonoGame.Extended.Collisions /// This vector starts at the edge of and ends at /// the Actor's location. /// - public Vector2 PenetrationVector { get; internal set; } + public required Vector2 PenetrationVector { get; init; } } -} \ No newline at end of file +}