map format change: move mapactor Type onto header line

This commit is contained in:
Bob
2010-07-31 16:57:19 +12:00
parent bceaecf031
commit f789aef892
3 changed files with 407 additions and 811 deletions

View File

@@ -131,7 +131,8 @@ namespace OpenRA.FileFormats
else
{
foreach (var kv in yaml["Actors"].Nodes)
{
{
kv.Value.Nodes.Add( "Type", new MiniYaml( kv.Value.Value ) );
var a = new ActorReference(kv.Key, kv.Value);
Actors.Add(a.Id, a);
}