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

@@ -9,12 +9,14 @@
#endregion
using System.Linq;
using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Grants an upgrade to the collector.")]
public class GrantUpgradeCrateActionInfo : CrateActionInfo
{
[UpgradeGrantedReference]
[Desc("The upgrades to apply.")]
public readonly string[] Upgrades = { };