One aim slot holds an item or a mount; the cycle covers every located mount

Entity.AimedAt (AimTarget: a revealed item or a believed mount) replaces
TargetItem. Two writers, TrySelectTargetItem (IsRevealed) and TrySelectMount
(in LayoutOf, not seen destroyed); ResolvedAim re-validates both on every read.
AimCycle is SchematicRows' enemy rows minus mounts in the observer's
seen-destroyed record, written only in Sense through PerceivesDestroyed.
SchematicRows drops its covering filter. IsLocated and AimsAtMount are deleted;
PendingShot.AimedMount and Silhouette's HardpointData mount replace the bool.
The cycle key calls Entity.CycleAim; the schematic marks read ResolvedAim.
Entity.ToString names an entity (follow-up entity-formats-safely).

The slot is AimedAt, not Aim: Entity.Aim is the pilot's pointing direction.
Not yet built or run; ActionGameManager and SchematicDisplay are uncompiled
without Unity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-15 04:42:38 +02:00
commit f6c0d24dba
13 changed files with 449 additions and 162 deletions

View file

@ -206,11 +206,11 @@ public class SchematicDisplay : MonoBehaviour
}
// Cut 2 (docs/fire-control-cut.md): marks whichever row is the player's current aim point.
// Re-checked every frame (not just on ShowShip) because ResolvedTargetItem can drop on its own
// Re-checked every frame (not just on ShowShip) because ResolvedAim can drop on its own
// as info decays, with no event to hook.
if (_enemy && _schematicItems != null)
foreach (var x in _schematicItems)
x.ListElement.SetSelected(x.Row.Marks(_player.ResolvedTargetItem));
x.ListElement.SetSelected(x.Row.Marks(_player.ResolvedAim));
if(VisibilityLabel && !_enemy)
VisibilityLabel.text = ((int)_entity.Visibility).ToString();

View file

@ -15,7 +15,7 @@ public class SchematicListElement : MonoBehaviour
public RectTransform CooldownFill;
public RectTransform HeatFill;
// Cut 2 (docs/fire-control-cut.md): marks this row as the current aim point (Entity.ResolvedTargetItem)
// Cut 2 (docs/fire-control-cut.md): marks this row as the current aim point (Entity.ResolvedAim)
// on an enemy schematic. Unassigned in a prefab that has not been wired up in the Unity editor yet
// (unavailable in this pass) -- SetSelected below is a no-op until then, not a null reference.
public GameObject SelectedIndicator;