Document GlobalUpgradable

This commit is contained in:
penev92
2015-06-11 13:31:40 +03:00
parent 74abf58f3e
commit f1ec71b17d

View File

@@ -13,9 +13,13 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Grants upgrades to the actor this is attached to when prerequisites are available.")]
public class GlobalUpgradableInfo : ITraitInfo, Requires<UpgradeManagerInfo>
{
[Desc("List of upgrades to apply.")]
public readonly string[] Upgrades = { };
[Desc("List of required prerequisites.")]
public readonly string[] Prerequisites = { };
public object Create(ActorInitializer init) { return new GlobalUpgradable(init.Self, this); }