feat(rendering): complete current-path render referee
Extend the non-drawing oracle through ordered PView routes, dispatcher visibility and final instance payloads, and accepted retail selection parts. Lifecycle artifacts can now referee the later shadow scene without influencing production visibility or draw decisions.
This commit is contained in:
parent
dbaea19269
commit
f9b68f8f2a
11 changed files with 964 additions and 41 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Numerics;
|
||||
using AcDream.App.Rendering;
|
||||
using AcDream.App.Rendering.Scene;
|
||||
using AcDream.App.Rendering.Selection;
|
||||
using AcDream.Core.Selection;
|
||||
using AcDream.Core.World;
|
||||
|
|
@ -68,6 +69,31 @@ public sealed class RetailSelectionSceneTests
|
|||
Assert.Equal(published.Id, hit.Value.LocalEntityId);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CurrentPathRefereeRecordsOnlyAcceptedSelectionParts()
|
||||
{
|
||||
var oracle = new CurrentRenderSceneOracle();
|
||||
var scene = CreateScene();
|
||||
scene.SetCurrentRenderSceneObserver(oracle);
|
||||
var entity = Entity(localId: 48u, serverGuid: 0x5000_0048u);
|
||||
|
||||
Publish(scene, entity);
|
||||
|
||||
Assert.Equal(1uL, oracle.Snapshot.CompletedSelectionFrameSequence);
|
||||
Assert.Equal(1, oracle.Snapshot.SelectionPartCount);
|
||||
CurrentRenderSelectionFingerprint part =
|
||||
Assert.Single(oracle.SelectionParts);
|
||||
Assert.Equal(entity.ServerGuid, part.ServerGuid);
|
||||
Assert.Equal(entity.Id, part.LocalEntityId);
|
||||
Assert.Equal(0, part.PartIndex);
|
||||
Assert.Equal(0x0100_0001u, part.GfxObjId);
|
||||
|
||||
scene.BeginFrame();
|
||||
scene.AbortFrame();
|
||||
Assert.Equal(1, oracle.Snapshot.AbortedSelectionFrames);
|
||||
Assert.Empty(oracle.SelectionParts);
|
||||
}
|
||||
|
||||
private static RetailSelectionScene CreateScene(
|
||||
RetailSelectionLightingPulse? pulse = null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue