Move linter interfaces to Mods.Common.
This commit is contained in:
committed by
Oliver Brakmann
parent
0648fc9f31
commit
e54cf9acc3
@@ -353,10 +353,6 @@ namespace OpenRA.Traits
|
|||||||
IEnumerable<WPos> TargetablePositions(Actor self);
|
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
|
public interface IObjectivesPanel
|
||||||
{
|
{
|
||||||
string PanelName { get; }
|
string PanelName { get; }
|
||||||
|
|||||||
@@ -817,6 +817,7 @@
|
|||||||
<Compile Include="Traits\Conditions\GrantConditionOnBotOwner.cs" />
|
<Compile Include="Traits\Conditions\GrantConditionOnBotOwner.cs" />
|
||||||
<Compile Include="Traits\Render\ReloadArmamentsBar.cs" />
|
<Compile Include="Traits\Render\ReloadArmamentsBar.cs" />
|
||||||
<Compile Include="Lint\CheckChromeHotkeys.cs" />
|
<Compile Include="Lint\CheckChromeHotkeys.cs" />
|
||||||
|
<Compile Include="UtilityCommands\LintInterfaces.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.FileSystem;
|
using OpenRA.FileSystem;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Mods.Common.Lint;
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common.UtilityCommands
|
namespace OpenRA.Mods.Common.UtilityCommands
|
||||||
{
|
{
|
||||||
|
|||||||
19
OpenRA.Mods.Common/UtilityCommands/LintInterfaces.cs
Normal file
19
OpenRA.Mods.Common/UtilityCommands/LintInterfaces.cs
Normal 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); }
|
||||||
|
}
|
||||||
@@ -10,8 +10,8 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using OpenRA.Mods.Common.Lint;
|
||||||
using OpenRA.Mods.D2k.UtilityCommands;
|
using OpenRA.Mods.D2k.UtilityCommands;
|
||||||
using OpenRA.Traits;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.D2k.Lint
|
namespace OpenRA.Mods.D2k.Lint
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user