Command seam, agents: one PilotCommand per entity, applied once per step by PilotApplier in Zone.Update
Agent, Flight, Combat, MoveTo and Follow write only Ship.Command. Entities with no agent apply first, then each agent applies right after it decides. A pilot reads its own pending designation and aim item back from its command; FireControl gains Refuses/AgentFires/HitProbability overloads that take them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b13aa7385a
commit
9a2a9390e1
11 changed files with 169 additions and 34 deletions
|
|
@ -87,6 +87,10 @@ public abstract class Entity
|
|||
// hull turns only by Ship.Turn.
|
||||
public float3 Aim;
|
||||
|
||||
// The entity's one pilot input, written by its one pilot (its agent, the player, a scripted pilot) and applied only by
|
||||
// PilotApplier in the zone step. Runtime only: never packed.
|
||||
public PilotCommand Command { get; } = new PilotCommand();
|
||||
|
||||
public string Name;
|
||||
|
||||
// Names the entity for assertion messages and logs: xunit and the debugger format an object by walking its graph
|
||||
|
|
|
|||
Loading…
Reference in a new issue