refactor: Update test object modifications to use immutable patterns and extend command context with map, unitSet, and cities.

This commit is contained in:
2026-01-07 17:56:10 +00:00
parent b6e1c18203
commit 73c186fa74
2 changed files with 9 additions and 7 deletions
+3
View File
@@ -200,6 +200,9 @@ export class TestGameRunner {
year: this.currentDate.getFullYear(),
month: this.currentDate.getMonth() + 1,
season: Math.floor(this.currentDate.getMonth() / 3),
map: this.world.snapshot.map,
unitSet: this.world.snapshot.unitSet,
cities: this.world.snapshot.cities,
...cmd.context
};