Layout-aim: an identified hull shows where its mounts are; a located mount can be aimed at

TrySelectTargetItem and ResolvedTargetItem gate on FireControl.IsLocated (an item seen to act, or one on a mount of the
believed hull's layout) instead of IsRevealed; Combat keeps IsRevealed. Entity.LayoutOf derives the layout from the
Contact profile; SchematicRows appends a mount row per unclaimed hardpoint. A mount aim centres on the mount's cells and
is frozen per shot (PendingShot.AimAtMount). The cycle runs over located items, the schematic renders mount rows and
marks through SchematicRow.Marks. Not yet built or tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-15 00:17:14 +02:00
commit 095efacd79
5 changed files with 83 additions and 33 deletions

View file

@ -123,7 +123,9 @@ public class SchematicDisplay : MonoBehaviour
.ToArray();
foreach (var x in _schematicItems)
{
if(x.Row.Claimed is WeaponItemData weaponItemData)
if (x.Row.Mount != null)
x.ListElement.ShowGear(x.Row.Mount.Type, null);
else if(x.Row.Claimed is WeaponItemData weaponItemData)
x.ListElement.ShowWeapon(weaponItemData);
else
x.ListElement.ShowGear(x.Row.Claimed.HardpointType, x.Row.Claimed.Name);
@ -208,7 +210,7 @@ public class SchematicDisplay : MonoBehaviour
// as info decays, with no event to hook.
if (_enemy && _schematicItems != null)
foreach (var x in _schematicItems)
x.ListElement.SetSelected(x.Row.Item == _player.ResolvedTargetItem);
x.ListElement.SetSelected(x.Row.Marks(_player.ResolvedTargetItem));
if(VisibilityLabel && !_enemy)
VisibilityLabel.text = ((int)_entity.Visibility).ToString();