Maps as packages. Disable broken map selector.

This commit is contained in:
Paul Chote
2010-04-03 18:33:32 +13:00
committed by Bob
parent fd5539d110
commit 4e0170a437
11 changed files with 81 additions and 63 deletions

View File

@@ -19,6 +19,7 @@
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
@@ -38,6 +39,16 @@ namespace OpenRA.FileFormats
if (!x.Key.StartsWith("-"))
LoadField( self, x.Key, x.Value.Value );
}
public static void LoadFields( object self, Dictionary<string,MiniYaml> my, IEnumerable<string> fields )
{
foreach (var field in fields)
{
if (!my.ContainsKey(field)) continue;
FieldLoader.LoadField(self,field,my[field].Value);
}
}
public static void LoadField( object self, string key, string value )
{