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

@@ -15,6 +15,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Allows granting upgrades to actors from Lua scripts.")]
public class ScriptUpgradesCacheInfo : ITraitInfo
{
[UpgradeGrantedReference]
[Desc("Upgrades that can be granted from the scripts.")]
public readonly string[] Upgrades = { };