actually working custom lint passes
This commit is contained in:
@@ -82,7 +82,15 @@ namespace OpenRA
|
||||
a[ i ] = args[ key ];
|
||||
}
|
||||
return ctor.Invoke( a );
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<Type> GetTypesImplementing<T>()
|
||||
{
|
||||
var it = typeof(T);
|
||||
return ModAssemblies.Select( ma => ma.First ).Distinct()
|
||||
.SelectMany(ma => ma.GetTypes()
|
||||
.Where(t => t != it && it.IsAssignableFrom(t)));
|
||||
}
|
||||
|
||||
[AttributeUsage( AttributeTargets.Parameter )]
|
||||
public class ParamAttribute : Attribute
|
||||
|
||||
Reference in New Issue
Block a user