Add ITerrainInfoNotifyMapCreated interface.
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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 =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user