mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Very basic display. Draws the engagement footprint for air-to-air combat, a line from the flight to the target for IP, and lines from SAMs to their target for air defense. https://github.com/dcs-liberation/dcs_liberation/issues/1680
18 lines
489 B
Python
18 lines
489 B
Python
from __future__ import annotations
|
|
|
|
from collections.abc import Callable
|
|
from dataclasses import dataclass
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from game.sim.combat import FrozenCombat
|
|
|
|
|
|
# Ought to be frozen but mypy can't handle that:
|
|
# https://github.com/python/mypy/issues/5485
|
|
@dataclass
|
|
class GameUpdateCallbacks:
|
|
on_simulation_complete: Callable[[], None]
|
|
on_add_combat: Callable[[FrozenCombat], None]
|
|
on_combat_changed: Callable[[FrozenCombat], None]
|