mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
This makes it so that the mission planning effects are applied only if the package can be fulfilled. For example, breakthrough will be used only if all the BAI missions were fulfilled, not if they will *attempt* to be fulfilled.
17 lines
393 B
Python
17 lines
393 B
Python
from __future__ import annotations
|
|
|
|
from abc import abstractmethod
|
|
from typing import TYPE_CHECKING
|
|
|
|
from game.commander.theaterstate import TheaterState
|
|
from game.htn import PrimitiveTask
|
|
|
|
if TYPE_CHECKING:
|
|
from game.coalition import Coalition
|
|
|
|
|
|
class TheaterCommanderTask(PrimitiveTask[TheaterState]):
|
|
@abstractmethod
|
|
def execute(self, coalition: Coalition) -> None:
|
|
...
|