Refactor MapPreviewLogic

and add a states for updating map via MapCache.GetUpdatedMap
This commit is contained in:
Gustas
2022-09-19 22:21:58 +03:00
committed by Matthias Mailänder
parent 2c4a135c2b
commit a9cf728ee1
5 changed files with 407 additions and 409 deletions

View File

@@ -176,6 +176,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ "getSpawnOccupants", (Func<Dictionary<int, SpawnOccupant>>)(() => spawnOccupants.Update(selectedReplay)) },
{ "getDisabledSpawnPoints", (Func<HashSet<int>>)(() => disabledSpawnPoints.Update(selectedReplay)) },
{ "showUnoccupiedSpawnpoints", false },
{ "mapUpdatesEnabled", false },
{ "onMapUpdate", (Action<string>)(_ => { }) },
});
var replayDuration = new CachedTransform<ReplayMetadata, string>(r =>