Add ITerrainInfoNotifyMapCreated interface.

This commit is contained in:
Paul Chote
2020-10-11 13:31:41 +01:00
committed by reaperrr
parent 87790069e9
commit be2ca77acf
4 changed files with 29 additions and 30 deletions

View File

@@ -62,7 +62,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
map.SetBounds(tl, br);
map.PlayerDefinitions = new MapPlayers(map.Rules, 0).ToMiniYaml();
map.FixOpenAreas();
if (map.Rules.TerrainInfo is ITerrainInfoNotifyMapCreated notifyMapCreated)
notifyMapCreated.MapCreated(map);
Action<string> afterSave = uid =>
{