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

@@ -18,6 +18,7 @@ namespace OpenRA.Mods.Common.Traits
{
public class DeployToUpgradeInfo : ITraitInfo, Requires<UpgradeManagerInfo>
{
[UpgradeGrantedReference]
[Desc("The upgrades to grant when deploying and revoke when undeploying.")]
public readonly string[] Upgrades = { };

View File

@@ -18,6 +18,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Applies an upgrade to actors within a specified range.")]
public class UpgradeActorsNearInfo : ITraitInfo
{
[UpgradeGrantedReference]
[Desc("The upgrades to grant.")]
public readonly string[] Upgrades = { };