test(phys): A6.P3 slice 1 — add CollisionInfo.ContactPlaneWriteCount

Internal test-only counter incremented by SetContactPlane. Required
by IndoorContactPlaneRetentionTests to assert CP retention works
post-Finding-2 fix (A6.P2).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-05-22 08:23:56 +02:00
parent c6bc2b9980
commit 869edd93b0

View file

@ -248,8 +248,17 @@ public sealed class CollisionInfo
public List<uint> CollideObjectGuids = new();
public uint? LastCollidedObjectGuid;
/// <summary>
/// Test-only counter for ContactPlane writes. Incremented by every
/// call to <see cref="SetContactPlane"/>. Used by
/// IndoorContactPlaneRetentionTests to assert that CP retention is
/// working (A6.P3 slice 1, 2026-05-21).
/// </summary>
internal int ContactPlaneWriteCount { get; private set; }
public void SetContactPlane(Plane plane, uint cellId, bool isWater = false)
{
ContactPlaneWriteCount++;
ContactPlaneValid = true;
ContactPlane = plane;
ContactPlaneCellId = cellId;