Keep orbit task targets on typed keys
This commit is contained in:
parent
65456f09cd
commit
cfc1ddac6d
8 changed files with 137 additions and 10 deletions
|
|
@ -37,8 +37,8 @@ public class MoveToEntityState : MoveToState
|
|||
|
||||
public class MoveToOrbitState : MoveToState
|
||||
{
|
||||
public Guid Orbit { get; set; }
|
||||
public string OrbitKey { get; set; } = "";
|
||||
public MoveToOrbitState(Agent agent) : base(agent) { }
|
||||
|
||||
protected override float2 TargetPosition => _agent.Ship.Zone.GetOrbitPosition(Orbit);
|
||||
protected override float2 TargetPosition => _agent.Ship.Zone.GetOrbitPosition(OrbitKey);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue