Add a description to DisableUpgrade

This commit is contained in:
Pavel Penev
2015-08-21 17:12:14 +03:00
parent cdedfe6931
commit 899ea7e16d

View File

@@ -8,13 +8,11 @@
*/ */
#endregion #endregion
using System;
using System.Collections.Generic;
using OpenRA.GameRules;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Disable the actor when this trait is enabled by an upgrade.")]
public class DisableUpgradeInfo : UpgradableTraitInfo public class DisableUpgradeInfo : UpgradableTraitInfo
{ {
public override object Create(ActorInitializer init) { return new DisableUpgrade(this); } public override object Create(ActorInitializer init) { return new DisableUpgrade(this); }
@@ -25,7 +23,6 @@ namespace OpenRA.Mods.Common.Traits
public DisableUpgrade(DisableUpgradeInfo info) public DisableUpgrade(DisableUpgradeInfo info)
: base(info) { } : base(info) { }
// Disable the actor when this trait is enabled.
public bool Disabled { get { return !IsTraitDisabled; } } public bool Disabled { get { return !IsTraitDisabled; } }
public bool MoveDisabled(Actor self) { return !IsTraitDisabled; } public bool MoveDisabled(Actor self) { return !IsTraitDisabled; }
} }