mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Reintroduce legacy SEAD Escort flight plan, but under a separate type because it didn't really escort the primary flight...
29 lines
792 B
Python
29 lines
792 B
Python
from __future__ import annotations
|
|
|
|
from datetime import timedelta
|
|
from typing import Type
|
|
|
|
from .formationattack import (
|
|
FormationAttackBuilder,
|
|
FormationAttackFlightPlan,
|
|
FormationAttackLayout,
|
|
)
|
|
from ..flightwaypointtype import FlightWaypointType
|
|
|
|
|
|
class SeadSweepFlightPlan(FormationAttackFlightPlan):
|
|
@staticmethod
|
|
def builder_type() -> Type[Builder]:
|
|
return Builder
|
|
|
|
def default_tot_offset(self) -> timedelta:
|
|
return -timedelta(minutes=2)
|
|
|
|
|
|
class Builder(FormationAttackBuilder[SeadSweepFlightPlan, FormationAttackLayout]):
|
|
def layout(self) -> FormationAttackLayout:
|
|
return self._build(FlightWaypointType.INGRESS_SEAD_SWEEP)
|
|
|
|
def build(self) -> SeadSweepFlightPlan:
|
|
return SeadSweepFlightPlan(self.flight, self.layout())
|