diff --git a/OpenRA.FileFormats/FieldLoader.cs b/OpenRA.FileFormats/FieldLoader.cs index beb76fca6f..3c2c2a0742 100755 --- a/OpenRA.FileFormats/FieldLoader.cs +++ b/OpenRA.FileFormats/FieldLoader.cs @@ -90,6 +90,11 @@ namespace OpenRA.FileFormats UnknownFieldAction( key.Trim(), self.GetType() ); } + public static T GetValue( string field, string value ) + { + return (T) GetValue( field, typeof(T), value ); + } + public static object GetValue( string field, Type fieldType, string x ) { if (x != null) x = x.Trim();