Rename type parameter "ValueType" to "T" in HackyAI.cs

This commit is contained in:
ScottNZ
2013-11-12 17:37:22 +13:00
parent f1f1a2b166
commit 8197f29606

View File

@@ -51,13 +51,13 @@ namespace OpenRA.Mods.RA.AI
[FieldLoader.LoadUsing("LoadBuildingLimits")]
public readonly Dictionary<string, int> BuildingLimits = null;
static object LoadList<ValueType>(MiniYaml y, string field)
static object LoadList<T>(MiniYaml y, string field)
{
return y.NodesDict.ContainsKey(field)
? y.NodesDict[field].NodesDict.ToDictionary(
a => a.Key,
a => FieldLoader.GetValue<ValueType>(field, a.Value.Value))
: new Dictionary<string, ValueType>();
a => FieldLoader.GetValue<T>(field, a.Value.Value))
: new Dictionary<string, T>();
}
static object LoadUnits(MiniYaml y) { return LoadList<float>(y, "UnitsToBuild"); }