unit influence blocks building

This commit is contained in:
Chris Forbes
2009-10-24 22:39:07 +13:00
parent 2b60a31c0c
commit 021e41a5bf
6 changed files with 91 additions and 46 deletions

View File

@@ -33,6 +33,13 @@ namespace OpenRa
return (T)inner[ typeof( T ) ];
}
public T GetOrDefault<T>()
{
object o = null;
inner.TryGetValue(typeof(T), out o);
return (T)o;
}
public IEnumerable<T> WithInterface<T>()
{
foreach( var i in inner )