Add a Utility class and update command interface.

This commit is contained in:
Paul Chote
2016-08-05 18:25:51 +01:00
parent 510555af5c
commit 45a596953e
36 changed files with 157 additions and 148 deletions

View File

@@ -9,8 +9,21 @@
*/
#endregion
using OpenRA.Traits;
namespace OpenRA
{
public class Utility
{
public readonly ModData ModData;
public Utility(ModData modData)
{
ModData = modData;
}
}
[RequireExplicitImplementation]
public interface IUtilityCommand
{
/// <summary>
@@ -20,6 +33,6 @@ namespace OpenRA
bool ValidateArguments(string[] args);
void Run(ModData modData, string[] args);
void Run(Utility utility, string[] args);
}
}