Add UpgradeGrantedReferenceAttribute

This commit is contained in:
penev92
2015-06-11 13:35:26 +03:00
parent 2ab7abcee4
commit fbbd9a7eaa
8 changed files with 12 additions and 1 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,7 @@ namespace OpenRA.Traits
Prefix = prefix;
}
}
[AttributeUsage(AttributeTargets.Field)]
public sealed class UpgradeGrantedReferenceAttribute : Attribute { }
}