async server browser

This commit is contained in:
Chris Forbes
2010-04-19 18:06:48 +12:00
parent d8c525d39c
commit faea3d33e3
7 changed files with 131 additions and 48 deletions

View File

@@ -39,6 +39,13 @@ namespace OpenRA.FileFormats
if (!x.Key.StartsWith("-"))
LoadField( self, x.Key, x.Value.Value );
}
public static T Load<T>(MiniYaml y) where T : new()
{
var t = new T();
Load(t, y);
return t;
}
public static void LoadFields( object self, Dictionary<string,MiniYaml> my, IEnumerable<string> fields )
{