#115 New construction options

This commit is contained in:
Chris Forbes
2010-04-05 08:44:46 +12:00
parent 2f982c7eea
commit 93632f6c6c
4 changed files with 26 additions and 7 deletions

View File

@@ -55,5 +55,10 @@ namespace OpenRA
var y = files.Select(a => MiniYaml.FromFile(a)).Aggregate(MiniYaml.Merge);
return y.ToDictionary(kv => kv.Key.ToLowerInvariant(), kv => f(kv, y));
}
public static IEnumerable<string> Categories()
{
return Info.Values.Select( x => x.Category ).Distinct().Where( g => g != null ).ToList();
}
}
}