clean up remaining non-generic GetValue uses
This commit is contained in:
@@ -55,7 +55,7 @@ namespace OpenRA.GameRules
|
|||||||
return y.NodesDict.ContainsKey( "Versus" )
|
return y.NodesDict.ContainsKey( "Versus" )
|
||||||
? y.NodesDict[ "Versus" ].NodesDict.ToDictionary(
|
? y.NodesDict[ "Versus" ].NodesDict.ToDictionary(
|
||||||
a => a.Key,
|
a => a.Key,
|
||||||
a => (float)FieldLoader.GetValue( "(value)", typeof( float ), a.Value.Value ) )
|
a => FieldLoader.GetValue<float>( "(value)", a.Value.Value ) )
|
||||||
: new Dictionary<string, float>();
|
: new Dictionary<string, float>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace OpenRA.Widgets
|
|||||||
|
|
||||||
public static T Get<T>(string key)
|
public static T Get<T>(string key)
|
||||||
{
|
{
|
||||||
return (T)FieldLoader.GetValue( key, typeof(T), data[key] );
|
return FieldLoader.GetValue<T>( key, data[key] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user