add more lint interfaces to reduce boiler plate

This commit is contained in:
Matthias Mailänder
2015-08-16 09:25:54 +02:00
parent 838faa4ae3
commit 0b8d7708ef
18 changed files with 75 additions and 129 deletions

View File

@@ -17,11 +17,8 @@ namespace OpenRA.Mods.Common.Lint
{
class CheckSyncAnnotations : ILintPass
{
public void Run(Action<string> emitError, Action<string> emitWarning, Map map)
public void Run(Action<string> emitError, Action<string> emitWarning)
{
if (map != null)
return;
/* first, check all the types implementing ISync */
foreach (var t in Game.ModData.ObjectCreator.GetTypesImplementing<ISync>())
if (!HasAnySyncFields(t))