using System.Numerics; using GamePort.Assets; using GamePort.Game; namespace GamePort.Application; /// /// Deterministic integration check using direct contacts at original actor roots. /// This does not test navigation, player input, physics or original runtime fidelity. /// 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."); } }