Move linter interfaces to Mods.Common.

This commit is contained in:
Paul Chote
2017-09-07 19:47:18 +00:00
committed by Oliver Brakmann
parent 0648fc9f31
commit e54cf9acc3
5 changed files with 22 additions and 6 deletions

View File

@@ -353,10 +353,6 @@ namespace OpenRA.Traits
IEnumerable<WPos> TargetablePositions(Actor self);
}
public interface ILintPass { void Run(Action<string> emitError, Action<string> emitWarning, ModData modData); }
public interface ILintMapPass { void Run(Action<string> emitError, Action<string> emitWarning, Map map); }
public interface ILintRulesPass { void Run(Action<string> emitError, Action<string> emitWarning, Ruleset rules); }
public interface IObjectivesPanel
{
string PanelName { get; }

View File

@@ -817,6 +817,7 @@
<Compile Include="Traits\Conditions\GrantConditionOnBotOwner.cs" />
<Compile Include="Traits\Render\ReloadArmamentsBar.cs" />
<Compile Include="Lint\CheckChromeHotkeys.cs" />
<Compile Include="UtilityCommands\LintInterfaces.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterBuild">

View File

@@ -13,7 +13,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using OpenRA.FileSystem;
using OpenRA.Traits;
using OpenRA.Mods.Common.Lint;
namespace OpenRA.Mods.Common.UtilityCommands
{

View File

@@ -0,0 +1,19 @@
#region Copyright & License Information
/*
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
using System;
namespace OpenRA.Mods.Common.Lint
{
public interface ILintPass { void Run(Action<string> emitError, Action<string> emitWarning, ModData modData); }
public interface ILintMapPass { void Run(Action<string> emitError, Action<string> emitWarning, Map map); }
public interface ILintRulesPass { void Run(Action<string> emitError, Action<string> emitWarning, Ruleset rules); }
}

View File

@@ -10,8 +10,8 @@
#endregion
using System;
using OpenRA.Mods.Common.Lint;
using OpenRA.Mods.D2k.UtilityCommands;
using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Lint
{