Merge pull request #8321 from penev92/bleed_lintUpgrades

Add a lint check for actor upgrades
This commit is contained in:
Matthias Mailänder
2015-06-27 16:41:04 +02:00
16 changed files with 243 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Traits
[AttributeUsage(AttributeTargets.Field)]
public sealed class SequenceReferenceAttribute : Attribute
{
public readonly string ImageReference; // the field name in the same trait info that contains the image name
public readonly string ImageReference; // The field name in the same trait info that contains the image name.
public readonly bool Prefix;
public SequenceReferenceAttribute(string imageReference = null, bool prefix = false)
{
@@ -37,4 +37,10 @@ namespace OpenRA.Traits
Prefix = prefix;
}
}
[AttributeUsage(AttributeTargets.Field)]
public sealed class UpgradeGrantedReferenceAttribute : Attribute { }
[AttributeUsage(AttributeTargets.Field)]
public sealed class UpgradeUsedReferenceAttribute : Attribute { }
}