Traits is now data-driven. Actor.cs is now SMALL. (win)
- FieldLoader can now handle arrays. This might be useful for Prerequisites, Owner fields.
This commit is contained in:
@@ -8,9 +8,14 @@ namespace OpenRa
|
||||
{
|
||||
Dictionary<Type, object> inner = new Dictionary<Type, object>();
|
||||
|
||||
public void Add( Type t, object val )
|
||||
{
|
||||
inner.Add( t, val );
|
||||
}
|
||||
|
||||
public void Add<T>( T val )
|
||||
{
|
||||
inner.Add( typeof( T ), val );
|
||||
Add( typeof( T ), val );
|
||||
}
|
||||
|
||||
public void Remove<T>()
|
||||
|
||||
Reference in New Issue
Block a user