Give hard-coded special case waypoints a descriptive name.

This commit is contained in:
Matthias Mailänder
2016-06-05 11:54:01 +02:00
parent a3af1d91cc
commit d76a344ebe
3 changed files with 27 additions and 1 deletions

View File

@@ -277,11 +277,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
new OwnerInit("Neutral")
};
Map.ActorDefinitions.Add(new MiniYamlNode("waypoint" + kv.First, ar.Save()));
SaveWaypoint(kv.First, ar);
}
}
}
public virtual void SaveWaypoint(int waypointNumber, ActorReference waypointReference)
{
var waypointName = "waypoint" + waypointNumber;
Map.ActorDefinitions.Add(new MiniYamlNode(waypointName, waypointReference.Save()));
}
void LoadSmudges(IniFile file, string section)
{
var scorches = new List<MiniYamlNode>();