Reconstruct lab story, interactions, patrol and jet pack practice flow
This commit is contained in:
1 parent
58424120bb
commit
c929f942e1
84 files changed
+7957
-305
No files matched your search
@@ -0,0 +1,32 @@
|
||||
using System.Numerics;
|
||||
using GamePort.Assets;
|
||||
using GamePort.Game;
|
||||
|
||||
namespace GamePort.Application;
|
||||
|
||||
/// <summary>
|
||||
/// Deterministic integration check using direct contacts at original actor roots.
|
||||
/// This does not test navigation, player input, physics or original runtime fidelity.
|
||||
/// </summary>
|
||||
public static class LabRouteSmoke
|
||||
{
|
||||
public static void Run(GamLevel level, SceneDirector director, SceneInteractions interactions, Action? dismissPractice = null)
|
||||
{
|
||||
if (level.Code != "LV1B") throw new ArgumentException("Lab route check requires original LV1B");
|
||||
director.Skip();
|
||||
var player = level.Player!.Tag!;
|
||||
director.Touch(player, level.Entities.Single(e => e.Tag == "teleportexplanation").Position);
|
||||
director.Skip();
|
||||
interactions.Update(director.FindActor("shrinkray")!.Position);
|
||||
dismissPractice?.Invoke();
|
||||
var carl = director.FindActor("C3DCARL")!;
|
||||
director.SyncActor(player, carl.Position, Vector3.Zero);
|
||||
interactions.Update(carl.Position);
|
||||
director.Skip();
|
||||
if (!director.Controlled || interactions.Score != 150 || interactions.Inventory.State(0, 3) != 1
|
||||
|| interactions.CurrentObjective != 3)
|
||||
throw new InvalidOperationException("Original lab contact route did not reach the recovered exit state");
|
||||
interactions.Update(level.Entities.Single(e => e.Tag == "LABTONEIGH").Position);
|
||||
Console.WriteLine("Lab direct-contact integration: explanation, shrinkray, Carl callback and exit; score150, gadget3, objective3. Navigation was not exercised.");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user