Allow definition of settings in campaign's yaml file

Resolves #92
This commit is contained in:
Raffson
2023-04-08 19:34:24 +02:00
parent 5c4ab2578d
commit 5916ed43d2
11 changed files with 187 additions and 126 deletions

View File

@@ -56,6 +56,7 @@ class Campaign:
data: Dict[str, Any]
path: Path
advanced_iads: bool
settings: Dict[str, Any]
@classmethod
def from_file(cls, path: Path) -> Campaign:
@@ -108,6 +109,7 @@ class Campaign:
data,
path,
data.get("advanced_iads", False),
data.get("settings", {}),
)
def load_theater(self, advanced_iads: bool) -> ConflictTheater: