public UndockFirstTaskGenerator(MyGridProgram program, IAutopilot autopilot, IDockingSubsystem dockingSubsystem)
        {
            Autopilot        = autopilot;
            DockingSubsystem = dockingSubsystem;
            CompoundTask.Do(new Dictionary <MyTuple <IntelItemType, long>, IFleetIntelligence>(), TimeSpan.Zero, null);
            CompoundTask.Reset();

            UndockSeperationTask = new UndockSeperationTask(Autopilot, DockingSubsystem, program);
            UndockSeperationTask.Do(new Dictionary <MyTuple <IntelItemType, long>, IFleetIntelligence>(), TimeSpan.Zero, null);
            DockingSubsystem.Undock(true);
        }
 public ITask GenerateUndockTask(TimeSpan canonicalTime)
 {
     UndockSeperationTask.Reset(canonicalTime);
     return(UndockSeperationTask);
 }