mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
12 lines
410 B
Python
12 lines
410 B
Python
from collections.abc import Iterator
|
|
|
|
from game.commander.tasks.primitive.aewc import PlanAewc
|
|
from game.commander.theaterstate import TheaterState
|
|
from game.htn import CompoundTask, Method
|
|
|
|
|
|
class PlanAewcSupport(CompoundTask[TheaterState]):
|
|
def each_valid_method(self, state: TheaterState) -> Iterator[Method[TheaterState]]:
|
|
for target in state.aewc_targets:
|
|
yield [PlanAewc(target)]
|