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:
parent
c6bc2b9980
commit
869edd93b0
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue