more traitinfos

This commit is contained in:
Chris Forbes
2010-01-10 13:20:51 +13:00
parent 409a48b22a
commit fee63593d7
21 changed files with 101 additions and 4 deletions

View File

@@ -7,12 +7,12 @@ namespace OpenRa.Game.GameRules
{
static class FieldLoader
{
public static void Load( object self, IniSection ini )
public static void Load(object self, IniSection ini)
{
foreach( var x in ini )
foreach (var x in ini)
{
var field = self.GetType().GetField( x.Key.Trim() );
field.SetValue( self, GetValue( field.FieldType, x.Value.Trim() ) );
var field = self.GetType().GetField(x.Key.Trim());
field.SetValue(self, GetValue(field.FieldType, x.Value.Trim()));
}
}