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

@@ -99,7 +99,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
Map.PlayerDefinitions = MapPlayers.ToMiniYaml();
}
Map.FixOpenAreas();
if (Map.Rules.TerrainInfo is ITerrainInfoNotifyMapCreated notifyMapCreated)
notifyMapCreated.MapCreated(Map);
var dest = Path.GetFileNameWithoutExtension(args[1]) + ".oramap";