Move TGOs out of MapModel.

This commit is contained in:
Dan Albert
2022-03-03 17:10:12 -08:00
parent d0ad554e14
commit c5c596dc2f
19 changed files with 186 additions and 186 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import annotations
from typing import Callable, TYPE_CHECKING
from game.theater import MissionTarget
from game.theater import MissionTarget, TheaterGroundObject
if TYPE_CHECKING:
from game import Game
@@ -28,8 +28,13 @@ class GameContext:
class QtCallbacks:
def __init__(self, create_new_package: Callable[[MissionTarget], None]) -> None:
def __init__(
self,
create_new_package: Callable[[MissionTarget], None],
show_tgo_info: Callable[[TheaterGroundObject], None],
) -> None:
self.create_new_package = create_new_package
self.show_tgo_info = show_tgo_info
class QtContext: