Fix Locomotor lint check
It was missing from the project file (oops...) and missing a check for duplicate Locomotor names.
This commit is contained in:
@@ -22,6 +22,11 @@ namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
var worldActor = rules.Actors["world"];
|
||||
var locomotorInfos = worldActor.TraitInfos<LocomotorInfo>().ToArray();
|
||||
foreach (var li in locomotorInfos)
|
||||
foreach (var otherLocomotor in locomotorInfos)
|
||||
if (li != otherLocomotor && li.Name == otherLocomotor.Name)
|
||||
emitError("There is more than one Locomotor with name {0}!".F(li.Name));
|
||||
|
||||
foreach (var actorInfo in rules.Actors)
|
||||
{
|
||||
foreach (var traitInfo in actorInfo.Value.TraitInfos<ITraitInfo>())
|
||||
|
||||
@@ -197,6 +197,7 @@
|
||||
<Compile Include="Lint\CheckMapMetadata.cs" />
|
||||
<Compile Include="Lint\CheckChromeHotkeys.cs" />
|
||||
<Compile Include="Lint\CheckConflictingMouseBounds.cs" />
|
||||
<Compile Include="Lint\CheckLocomotorReferences.cs" />
|
||||
<Compile Include="Lint\LintBuildablePrerequisites.cs" />
|
||||
<Compile Include="Lint\LintExts.cs" />
|
||||
<Compile Include="LoadScreens\ModContentLoadScreen.cs" />
|
||||
|
||||
Reference in New Issue
Block a user