A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Map: the Egyptian Spitfire flies a slow loop (Refs #2014) (#2238)
Eyal Golan501248829784
diff --git a/changelog.d/spitfire-loop.md b/changelog.d/spitfire-loop.mdnew file mode 100644index 000000000..199462d53--- /dev/null+++ b/changelog.d/spitfire-loop.md@@ -0,0 +1,5 @@+### Changed+- Tal Heuberger's Egyptian Spitfire no longer hangs still over the western board edge: it flies a slow loop, in from+ el-Arish and back, a 10 km by 6 km ellipse round its old spot, once every 40 seconds, nose along its path (owner+ ruling of 2 November 2026, "Fly a slow loop"). Presentation only; screenshots and editor renders hold the loop's+ start. The model has no separate propeller, so nothing spins. Goldens did not move.diff --git a/unity/Assets/Scripts/Map/Collection/SeaAirCollection.cs b/unity/Assets/Scripts/Map/Collection/SeaAirCollection.csindex 0a7afaee6..adf7356ca 100644--- a/unity/Assets/Scripts/Map/Collection/SeaAirCollection.cs+++ b/unity/Assets/Scripts/Map/Collection/SeaAirCollection.cs@@ -19,7 +19,7 @@ namespace Statecraft.Game.Map.Collection/// turn stands at one place, so it stands off Tel Aviv, where it ran aground and burned;</item>/// <item>a C-54 at Lod (Lydda) Airport while Operation Magic Carpet's main airlift ran, from July 1949 to its last flights/// into Lydda on 24 September 1950 (<see cref="C54From"/>, <see cref="C54To"/>);</item>- /// <item>the Egyptian Spitfire in flight near the western board edge (30 km in) toward el-Arish, from 15 May 1948 to 2 January 1949+ /// <item>the Egyptian Spitfire flying a slow loop near the western board edge (about 30 km in) toward el-Arish and back (<see cref="SpitfireLoop"/>), from 15 May 1948 to 2 January 1949/// (<see cref="SpitfireFrom"/>, <see cref="SpitfireTo"/>, #1932), never on a hex or an airfield.</item>/// </list>/// The boats lie on the open sea past the surf, where SeaCraft's own boats sail (SeaCraft.OffshoreNearM to OffshoreM out@@ -133,6 +133,37 @@ namespace Statecraft.Game.Map.Collectionpublic static Vector2 EdgeSpot(GeoFrame frame) =>new Vector2(30000f, frame.ToWorld(ElArishLon, ElArishLat, 0).z);+ /// <summary>DESIGN VALUES: the Spitfire's loop (owner, 2 November 2026: "Fly a slow loop", a short repeating pass in+ /// from el-Arish over the western edge that turns back; v0.3.3 drew it standing still). A long ellipse centred on+ /// <see cref="EdgeSpot"/>, 5 km each way east-west and 3 km each way north-south, flown once every 40 s: in east+ /// along its southern side, a turn north at the east end, back west along its northern side, a turn south at the+ /// west end. About 25.5 km round, so about 640 m/s of map: with the camera's 35 degree field of view (CameraRig.Fov),+ /// about 27 px a second at 40 km and 7 px a second at 150 km on a 1080p screen (the steam train moves about 9 px a+ /// second at the gameplay zoom, RouteTrain.SpeedMps). The west end's centre is 25 km in, where the whole aircraft is+ /// still in frame at 40 and 150 km (measured for #2014); the whole aircraft stays over the board (more than 20 km in).+ /// The nearest unit anchor (content/map/units_1948.yaml: the Egyptian Expeditionary Force at Gaza, to 21 May 1948)+ /// is 42 km from the centre, and Lod, the board's one drawn airfield, about 100 km.</summary>+ public const float SpitfireLoopSeconds = 40f, SpitfireLoopHalfLengthM = 5000f, SpitfireLoopHalfWidthM = 3000f;++ /// <summary>Where the Spitfire is, from its loop's centre (world x, z, m), <paramref name="seconds"/> into its loop:+ /// at 0, due south of the centre, flying east (in from el-Arish); then anticlockwise seen from above.</summary>+ public static Vector2 LoopOffset(float seconds)+ {+ float a = LoopAngle(seconds);+ return new Vector2(SpitfireLoopHalfLengthM * Mathf.Sin(a), -SpitfireLoopHalfWidthM * Mathf.Cos(a));+ }++ /// <summary>The Spitfire's direction of travel there (world x, z; unit length): the loop's tangent.</summary>+ public static Vector2 LoopHeading(float seconds)+ {+ float a = LoopAngle(seconds);+ return new Vector2(SpitfireLoopHalfLengthM * Mathf.Cos(a), SpitfireLoopHalfWidthM * Mathf.Sin(a)).normalized;+ }++ /// <summary>The angle round the ellipse, from the clock taken modulo the period first, so it stays exact however long+ /// the session has run.</summary>+ static float LoopAngle(float seconds) => 2f * Mathf.PI * Mathf.Repeat(seconds, SpitfireLoopSeconds) / SpitfireLoopSeconds;+/// <summary>A boat's spot: out from its coast's shore point (SeaCraft.Coasts) between SeaCraft.OffshoreNearM and/// OffshoreM, at a seeded spread along the shore, the first whose hull passes SeaCraft.Clear against the harbour works/// and every boat already placed. Null when none is.</summary>@@ -270,7 +301,7 @@ namespace Statecraft.Game.Map.CollectionList<WildlifeLayer.Want>? wildlife;DateTime date;- /// <summary>The craft drawn (key, model, spot at the water's or ground's height; the Spitfire's centre in the air): a test aid.</summary>+ /// <summary>The craft drawn (key, model, spot at the water's or ground's height; the centre of the Spitfire's loop, in the air): a test aid.</summary>public readonly List<(string Key, string Model, Vector3 At)> Placed = new List<(string, string, Vector3)>();/// <summary>The craft wanted but not drawn: the model did not stream, or no spot was clear (a test aid).</summary>public readonly List<string> Missing = new List<string>();@@ -361,21 +392,27 @@ namespace Statecraft.Game.Map.Collection/// east, read off its top-down capture.</summary>internal const float SpitfireNoseEastYaw = 90f;- /// <summary>The Spitfire in level flight over <paramref name="at"/>: nose east, wingspan at its map size,- /// UnitShowcase.AltitudeM (4,200 m) above the highest ground under it (UnitShowcase.LoopFloor), where the unit tokens'- /// aircraft fly (#2014).</summary>+ /// <summary>The Spitfire in level flight round its loop about <paramref name="at"/> (<see cref="SpitfireLoop"/>), wingspan+ /// at its map size, UnitShowcase.AltitudeM (4,200 m) above the highest ground under the loop (UnitShowcase.LoopFloor),+ /// where the unit tokens' aircraft fly (#2014). It is drawn at the loop's start, nose east; the labels keep clear of+ /// the whole box it flies through.</summary>void Fly(GameObject go, GameObject prefab, Vector2 at){- go.transform.localRotation = Quaternion.Euler(0f, SpitfireNoseEastYaw, 0f) * prefab.transform.localRotation;+ var level = Quaternion.Euler(0f, SpitfireNoseEastYaw, 0f) * prefab.transform.localRotation;+ go.transform.localRotation = level;var b = Bounds(go); float span = b.size.z;go.transform.localScale *= span > 1e-3f ? SizeOf(Spitfire) / span : 1f;float size = SizeOf(Spitfire);- var pos = new Vector3(at.x, Statecraft.Game.Map.Units.UnitShowcase.LoopFloor(map!, new Vector3(at.x, 0f, at.y), size) + Statecraft.Game.Map.Units.UnitShowcase.AltitudeM, at.y);- go.transform.position = pos; b = Bounds(go);- go.transform.position += pos - b.center;+ var centre = new Vector3(at.x, Statecraft.Game.Map.Units.UnitShowcase.LoopFloor(map!, new Vector3(at.x, 0f, at.y), SpitfireLoopHalfLengthM + size)+ + Statecraft.Game.Map.Units.UnitShowcase.AltitudeM, at.y);+ go.transform.position = centre; b = Bounds(go);+ // Edit mode and screenshots hold the loop's start, as the train does (RouteLayer.ModeFor).+ go.AddComponent<SpitfireLoop>().Configure(centre, level, b.center - go.transform.position, !Application.isPlaying || VisualShots.Requested());foreach (var r in go.GetComponentsInChildren<Renderer>(true)) r.shadowCastingMode = ShadowCastingMode.On;- Placed.Add((go.name, Spitfire, pos));- keepAll.Add(new[] { Bounds(go) });+ Placed.Add((go.name, Spitfire, centre));+ // Seen from above, the aircraft at any heading lies within half its box's diagonal of its centre.+ float reach = 0.5f * new Vector2(b.size.x, b.size.z).magnitude + 1f;+ keepAll.Add(new[] { new Bounds(centre, new Vector3(2f * (SpitfireLoopHalfLengthM + reach), b.size.y + 2f, 2f * (SpitfireLoopHalfWidthM + reach))) });}/// <summary>The ground the other 1948 Collection layers hold (GameRoot shows them first), for the C-54 to keep off, asdiff --git a/unity/Assets/Scripts/Map/Collection/SpitfireLoop.cs b/unity/Assets/Scripts/Map/Collection/SpitfireLoop.csnew file mode 100644index 000000000..677d9331f--- /dev/null+++ b/unity/Assets/Scripts/Map/Collection/SpitfireLoop.cs@@ -0,0 +1,50 @@+#nullable enable+using System;+using UnityEngine;++namespace Statecraft.Game.Map.Collection+{+ /// <summary>Flies Tal Heuberger's Egyptian Spitfire round its loop (SeaAirCollection.LoopOffset, owner, 2 November 2026:+ /// "Fly a slow loop"), level, nose along the path. Presentation only: it reads the map's animation clock (Time.time, as+ /// the steam train and the showcase flight do), sets one transform per frame and allocates nothing. It lives on the+ /// aircraft's own object, so it stops when the layer drops the aircraft (its dates end, or the map is torn down) and+ /// does not run while the layer is inactive. The model is one fused mesh with no separate propeller, so nothing spins.+ /// Editor renders and screenshots (`?shot` / `-shot`) hold the loop's start, so they repeat exactly, as the train does+ /// (RouteLayer.ModeFor).</summary>+ public sealed class SpitfireLoop : MonoBehaviour+ {+ Vector3 centre, offset; Quaternion level; bool still;++ /// <summary>The animation clock, Time.time. Test seam (internal; the tests see it through InternalsVisibleTo): an+ /// EditMode test has no frame clock.</summary>+ internal static Func<float> Clock = () => Time.time;++ /// <summary>True when the aircraft holds the loop's start (edit mode, screenshots).</summary>+ public bool Still => still;++ /// <summary><paramref name="centre"/>: the loop's centre in the air. <paramref name="level"/>: the model's rotation+ /// with its nose east. <paramref name="offset"/>: its drawn centre from its pivot at that rotation.</summary>+ internal void Configure(Vector3 centre, Quaternion level, Vector3 offset, bool still)+ {+ this.centre = centre; this.level = level; this.offset = offset; this.still = still;+ // Where the clock puts it now: a component added mid-frame gets no Update that frame (review k2 C1).+ Place(still ? 0f : Clock());+ }++ void Update()+ {+ if (!still) Place(Clock());+ }++ /// <summary>Puts the aircraft where it is <paramref name="seconds"/> into its loop, its drawn centre on the path and+ /// its nose along the path's tangent.</summary>+ public void Place(float seconds)+ {+ var at = SeaAirCollection.LoopOffset(seconds); var heading = SeaAirCollection.LoopHeading(seconds);+ // A turn about the vertical from east (+x) to the heading; Unity's yaw turns +x toward -z.+ var yaw = Quaternion.Euler(0f, -Mathf.Atan2(heading.y, heading.x) * Mathf.Rad2Deg, 0f);+ transform.localRotation = yaw * level;+ transform.position = centre + new Vector3(at.x, 0f, at.y) - yaw * offset;+ }+ }+}diff --git a/unity/Assets/Scripts/Map/Collection/SpitfireLoop.cs.meta b/unity/Assets/Scripts/Map/Collection/SpitfireLoop.cs.metanew file mode 100644index 000000000..9708a7cff--- /dev/null+++ b/unity/Assets/Scripts/Map/Collection/SpitfireLoop.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 142aa3eba95d4bc5be63a5de5dd5a4b5diff --git a/unity/Assets/Tests/EditMode/SeaAirCollectionTests.cs b/unity/Assets/Tests/EditMode/SeaAirCollectionTests.csindex 453cc0ee2..288f00cb9 100644--- a/unity/Assets/Tests/EditMode/SeaAirCollectionTests.cs+++ b/unity/Assets/Tests/EditMode/SeaAirCollectionTests.cs@@ -140,11 +140,15 @@ public class SeaAirCollectionTestsvar mesh = go.GetComponentInChildren<MeshFilter>();var tip = mesh.sharedMesh.vertices.Select(mesh.transform.TransformPoint).OrderBy(v => Mathf.Abs(v.z - b.center.z)).Last();Assert.Greater(tip.x, b.center.x + 0.1f * b.size.x, "the wingtips sit east of the centre: the nose points east (geometry)");- float floor = Statecraft.Game.Map.Units.UnitShowcase.LoopFloor(map, new Vector3(at.x, 0f, at.z), span);- Assert.AreEqual(floor + 4200f, at.y, 1f, "4,200 m above the highest ground under it, the unit tokens' aircraft altitude (#2014)");+ // Its loop (owner, 2 November 2026, "Fly a slow loop") is centred here; edit mode holds the loop's start, due south of+ // the centre, heading east.+ Assert.AreEqual(at.x, b.center.x, 1f, "at the loop's start, east-west on the centre");+ Assert.AreEqual(at.z - SeaAirCollection.SpitfireLoopHalfWidthM, b.center.z, 1f, "at the loop's start, south of the centre");+ float floor = Statecraft.Game.Map.Units.UnitShowcase.LoopFloor(map, new Vector3(at.x, 0f, at.z), SeaAirCollection.SpitfireLoopHalfLengthM + span);+ Assert.AreEqual(floor + 4200f, at.y, 1f, "4,200 m above the highest ground under its loop, the unit tokens' aircraft altitude (#2014)");Assert.AreEqual(Statecraft.Game.Map.Units.UnitShowcase.AltitudeM, at.y - floor, 1f, "UnitShowcase.AltitudeM, no number duplicated");Assert.Greater(b.min.y, floor, "in flight, never on the ground");- Assert.AreEqual(1, layer.KeepClear.Count(k => (k[0].center - b.center).magnitude < 1f && (k[0].size - b.size).magnitude < 1f), "the labels keep clear of it");+ Assert.AreEqual(1, layer.KeepClear.Count(k => k[0].Contains(b.min) && k[0].Contains(b.max)), "the labels keep clear of it");}/// <summary>#2014 merge with v0.3.2's residency: Rebuild registers the Spitfire in its model's originals before Fly's@@ -181,6 +185,153 @@ public class SeaAirCollectionTestspublic void Dispose() { var call = done; done = null; call?.Invoke(); }}+ /// <summary>The Spitfire's farthest point from its centre, seen from above, at any heading: half the diagonal of a square+ /// as wide as its wingspan (its fuselage is shorter than its wingspan).</summary>+ static float SpitfireReach => 0.5f * Mathf.Sqrt(2f) * SeaAirCollection.SizeOf(SeaAirCollection.Spitfire);++ /// <summary>The owner, 2 November 2026 (v0.3.3: "the egyptian plane in v0.3.3 is not moving"), ruling "Fly a slow loop":+ /// a slow repeating pass in from el-Arish over the western edge and back. The loop's period is tens of seconds and its+ /// size a few km (DESIGN VALUES). Half a period on, the aircraft is on the other side of the loop. At every point it stays+ /// inside the loop's box about EdgeSpot, and the whole aircraft stays over the board, clear of every unit token+ /// (the dated rings and the town clearings) and far from Lod, the board's one drawn airfield.</summary>+ [Test]+ public void TheSpitfireLoopsInsideItsPathAndTheBoardClearOfTheTokens()+ {+ var map = OpenMap();+ var centre = SeaAirCollection.EdgeSpot(map.Frame);+ var ground = PlacementLayer.CampGround(map);+ float period = SeaAirCollection.SpitfireLoopSeconds, a = SeaAirCollection.SpitfireLoopHalfLengthM, b = SeaAirCollection.SpitfireLoopHalfWidthM;+ Assert.That(period, Is.InRange(20f, 90f), "a period of tens of seconds");+ Assert.That(a, Is.InRange(2000f, 10000f), "a few km east-west");+ Assert.That(b, Is.InRange(1000f, a), "narrower north-south: a long loop, in from the west and back");+ var lod = map.Frame.ToWorld(SeaAirCollection.LodLon, SeaAirCollection.LodLat, 0);+ for (int i = 0; i < 120; i++)+ {+ float t = i * period / 120f;+ var at = SeaAirCollection.LoopOffset(t); var opposite = SeaAirCollection.LoopOffset(t + 0.5f * period);+ Assert.Greater((at - opposite).magnitude, 2f * b - 1f, $"at {t:0.0} s and half a period on, the other side of the loop");+ Assert.LessOrEqual(Mathf.Abs(at.x), a + 0.5f, $"within the loop east-west at {t:0.0} s");+ Assert.LessOrEqual(Mathf.Abs(at.y), b + 0.5f, $"within the loop north-south at {t:0.0} s");+ var p = centre + at;+ Assert.IsTrue(ground.Inside(p.x - SpitfireReach, p.y - SpitfireReach) && ground.Inside(p.x + SpitfireReach, p.y + SpitfireReach),+ $"the whole aircraft over the board at {t:0.0} s ({p})");+ Assert.IsFalse(ground.OnToken(p, SpitfireReach, SeaAirCollection.SpitfireFrom), $"over no unit token's ring at {t:0.0} s ({p})");+ foreach (var (c, r) in map.UnitClearings)+ Assert.Greater((p - c).magnitude, r + SpitfireReach, $"over no town's unit clearing at {t:0.0} s ({p})");+ Assert.Greater((p - new Vector2(lod.x, lod.z)).magnitude, 20000f, "far from Lod's airfield");+ }+ // The pass starts flying in from el-Arish: due south of the centre, heading east.+ Assert.AreEqual(0f, SeaAirCollection.LoopOffset(0f).x, 1f);+ Assert.AreEqual(-b, SeaAirCollection.LoopOffset(0f).y, 1f);+ Assert.Greater(SeaAirCollection.LoopHeading(0f).x, 0.999f, "heading east at the start");+ }++ /// <summary>The loop is closed: a period on, the aircraft is back at the same place with the same heading, at any time+ /// (also long into a session, where the clock is large).</summary>+ [Test]+ public void TheSpitfireLoopIsClosed()+ {+ float period = SeaAirCollection.SpitfireLoopSeconds;+ foreach (var t in new[] { 0f, 3.7f, 12.5f, 0.5f * period, period - 0.01f, 1234.5f, 7200.25f })+ {+ Assert.Less((SeaAirCollection.LoopOffset(t) - SeaAirCollection.LoopOffset(t + period)).magnitude, 1f, $"the same place a period after {t} s");+ Assert.Less((SeaAirCollection.LoopHeading(t) - SeaAirCollection.LoopHeading(t + period)).magnitude, 1e-3f, $"the same heading a period after {t} s");+ }+ }++ /// <summary>The drawn aircraft flies the loop nose first: at every sampled time its centre is on the path about its+ /// recorded loop centre, level at that one altitude, its nose (the mesh's -y, as the in-flight test reads it) along the+ /// path's tangent, inside the box the labels keep clear of, and a period later at the same place. The heading is the+ /// path's tangent (a short chord's direction).</summary>+ [Test]+ public void TheSpitfireFacesAlongItsPath()+ {+ float period = SeaAirCollection.SpitfireLoopSeconds;+ for (int i = 0; i < 120; i++)+ {+ float t = i * period / 120f;+ var heading = SeaAirCollection.LoopHeading(t);+ Assert.AreEqual(1f, heading.magnitude, 1e-4f, "a unit heading");+ var chord = SeaAirCollection.LoopOffset(t + 0.01f) - SeaAirCollection.LoopOffset(t - 0.01f);+ Assert.Greater(Vector2.Dot(heading, chord.normalized), 0.999f, $"the heading is the path's tangent at {t:0.0} s");+ }++ var map = OpenMap();+ var layer = CollectionGeometryFixture.Craft(map, new DateTime(1948, 6, 15), Array.Empty<Placement>(), C)!; AnswerAll();+ var plane = layer.transform.Find("el-arish-spitfire")!;+ var loop = plane.GetComponent<SpitfireLoop>();+ Assert.IsNotNull(loop, "the drawn Spitfire carries its loop");+ Assert.IsTrue(loop.Still, "edit mode holds the loop's start, so editor renders repeat");+ var centre = layer.Placed.Single(p => p.Model == SeaAirCollection.Spitfire).At;+ var keep = layer.KeepClear.Single(k => k[0].Contains(centre))[0];+ for (int i = 0; i < 48; i++)+ {+ float t = i * period / 48f;+ loop.Place(t);+ var b = WorldBounds(plane.gameObject); var at = SeaAirCollection.LoopOffset(t);+ Assert.AreEqual(centre.x + at.x, b.center.x, 1f, $"on the path east-west at {t:0.0} s");+ Assert.AreEqual(centre.z + at.y, b.center.z, 1f, $"on the path north-south at {t:0.0} s");+ Assert.AreEqual(centre.y, b.center.y, 1f, $"level, at the loop's one altitude, at {t:0.0} s");+ var nose = plane.TransformDirection(Vector3.down);+ Assert.AreEqual(0f, nose.y, 1e-3f, "level flight");+ Assert.Greater(Vector2.Dot(new Vector2(nose.x, nose.z).normalized, SeaAirCollection.LoopHeading(t)), 0.999f, $"nose along the path at {t:0.0} s");+ Assert.IsTrue(keep.Contains(b.min) && keep.Contains(b.max), $"inside the box the labels keep clear of at {t:0.0} s");+ var here = b.center;+ loop.Place(t + period);+ Assert.Less((WorldBounds(plane.gameObject).center - here).magnitude, 1f, $"back at the same place a period after {t:0.0} s");+ }+ }++ /// <summary>Review k2 C1: in play the aircraft is drawn where the clock puts it from its first frame, not at the loop's+ /// start until its first Update (a component added mid-frame gets no Update that frame, so the frame it is built in would+ /// draw it up to 6 km from where it flies). Screenshots and edit mode still hold the loop's start. An EditMode test has+ /// no frame clock, so it drives SpitfireLoop.Clock.</summary>+ [Test]+ public void TheSpitfireIsDrawnWhereTheClockPutsItFromItsFirstFrame()+ {+ var clock = SpitfireLoop.Clock;+ var flying = new GameObject("flying"); var held = new GameObject("held");+ try+ {+ const float now = 12.5f;+ SpitfireLoop.Clock = () => now;+ var centre = new Vector3(30000f, 4200f, 1000f);+ flying.AddComponent<SpitfireLoop>().Configure(centre, Quaternion.identity, Vector3.zero, still: false);+ held.AddComponent<SpitfireLoop>().Configure(centre, Quaternion.identity, Vector3.zero, still: true);+ var there = SeaAirCollection.LoopOffset(now); var start = SeaAirCollection.LoopOffset(0f);+ Assert.Greater((there - start).magnitude, 1000f, "the test's time is far round the loop from its start");+ Assert.Less((flying.transform.position - (centre + new Vector3(there.x, 0f, there.y))).magnitude, 1f,+ "in play, where the clock puts it, before any Update");+ Assert.Less((held.transform.position - (centre + new Vector3(start.x, 0f, start.y))).magnitude, 1f,+ "held (edit mode, screenshots): at the loop's start whatever the clock");+ }+ finally+ {+ SpitfireLoop.Clock = clock;+ Object.DestroyImmediate(flying); Object.DestroyImmediate(held);+ }+ }++ /// <summary>The loop respects the Spitfire's dates (#1932: 15 May 1948 to 2 January 1949): outside them no aircraft and+ /// no loop is drawn; inside them exactly one looping aircraft.</summary>+ [Test]+ public void OutsideItsDatesThereIsNoSpitfireAndInsideThemOneLoopingOne()+ {+ var map = OpenMap();+ foreach (var (date, flying) in new[]+ {+ (new DateTime(1948, 5, 14), false), (new DateTime(1948, 5, 15), true), (new DateTime(1949, 1, 2), true),+ (new DateTime(1949, 1, 3), false), (new DateTime(1949, 8, 15), false),+ })+ {+ var layer = CollectionGeometryFixture.Craft(map, date, Array.Empty<Placement>(), C)!; AnswerAll();+ Assert.AreEqual(flying ? 1 : 0, layer.Placed.Count(p => p.Model == SeaAirCollection.Spitfire), $"the Spitfire on {date:d MMM yyyy}");+ Assert.AreEqual(flying ? 1 : 0, Object.FindObjectsByType<SpitfireLoop>(FindObjectsInactive.Include, FindObjectsSortMode.None).Length,+ $"the loops on {date:d MMM yyyy}");+ Assert.AreEqual(flying, layer.transform.Find("el-arish-spitfire") != null, $"the aircraft on {date:d MMM yyyy}");+ }+ }+/// <summary>Nothing is drawn until the stream answers, and only the far mesh, once per model. Then every craft is drawn,/// each boat on the open sea (the heightmap's 0 m), its hull passing SeaCraft's own clearance (open sea round it, clear of/// the harbour works and of SeaCraft's boats and each other) and at least SeaCraft.OffshoreNearM out from its shore point