contact-hud: the HUD reads the player's own ContactOf and book; TargetedBy and the spotted blink go
Selection is nothing the selected ship can sense: TargetedBy, TargetedByCount, their subscriptions and the music read of them are deleted. Indicator fills, the target panel, the compass, music and the enemy schematic rows now read CurrentEntity's ContactOf / RevealsOf / RevealedSubjects (new, the book's keys); the schematic rows are built by one builder from the book and rebuilt when the revealed set changes. Impact hull effect and projectile hit effects at another ship's position draw only through ActionGameManager.DrawsAt (the player's own ship or a Tracked contact). Builds untested in Unity at this commit; tests NothingReadsSelection and RevealedSubjectsListsTheBook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6292d82615
commit
4708a71a67
10 changed files with 149 additions and 57 deletions
|
|
@ -5,6 +5,7 @@ using UnityEngine;
|
|||
// How one entity's landed impacts look and feel: the hull reaction at the drawn impact point, and the player's camera
|
||||
// kick. The simulation publishes each impact once on the entity's Capabilities (FireControl); Feedback.Cue decides how
|
||||
// hard it reads and whether the camera feels it, DrawAhead.Carried decides where it is drawn; this decides nothing.
|
||||
// The hull effect is drawn only where the player's instruments place the ship (ActionGameManager.DrawsAt).
|
||||
// The shield ripple is ShieldManager's. Everything here is display-only and runs in real time.
|
||||
public class ImpactPresenter : MonoBehaviour, IAbsorbPresenter
|
||||
{
|
||||
|
|
@ -23,7 +24,7 @@ public class ImpactPresenter : MonoBehaviour, IAbsorbPresenter
|
|||
ActionGameManager.PlayerSettings.GraphicsSettings.ScreenShake, feedback.IntensityScale);
|
||||
var point = DrawAhead.Carried(Entity, cue.Position, ActionGameManager.Clock.Lead).ToUnity();
|
||||
|
||||
if (e.Layer == AbsorbLayer.Hull && feedback.HullEffect != null)
|
||||
if (e.Layer == AbsorbLayer.Hull && feedback.HullEffect != null && ActionGameManager.DrawsAt(Entity))
|
||||
{
|
||||
_live.RemoveAll(live => live == null || !live.gameObject.activeSelf);
|
||||
var effect = feedback.HullEffect.Instantiate<Prototype>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue