From 028dd46feeea491e5c11d25a07ec6a36ca69e877 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Wed, 19 Mar 2025 13:19:15 +0100 Subject: [PATCH] Change CollisionEventArgs settter to init require 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 +}