Add a Utility class and update command interface.
This commit is contained in:
@@ -28,9 +28,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
int violationCount;
|
||||
|
||||
[Desc("Check for explicit interface implementation violations in all assemblies referenced by the specified mod.")]
|
||||
void IUtilityCommand.Run(ModData modData, string[] args)
|
||||
void IUtilityCommand.Run(Utility utility, string[] args)
|
||||
{
|
||||
var types = modData.ObjectCreator.GetTypes();
|
||||
var types = utility.ModData.ObjectCreator.GetTypes();
|
||||
|
||||
foreach (var implementingType in types.Where(t => !t.IsInterface))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user