Change CollisionEventArgs settter to init require

Closes #977
This commit is contained in:
2025-03-19 13:19:15 +01:00
parent c4bfb3c37f
commit 028dd46fee
@@ -12,7 +12,7 @@ namespace MonoGame.Extended.Collisions
/// <summary> /// <summary>
/// Gets the object being collided with. /// Gets the object being collided with.
/// </summary> /// </summary>
public ICollisionActor Other { get; internal set; } public required ICollisionActor Other { get; init; }
/// <summary> /// <summary>
/// Gets a vector representing the overlap between the two objects. /// 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 <see cref="Other"/> and ends at /// This vector starts at the edge of <see cref="Other"/> and ends at
/// the Actor's location. /// the Actor's location.
/// </remarks> /// </remarks>
public Vector2 PenetrationVector { get; internal set; } public required Vector2 PenetrationVector { get; init; }
} }
} }