Replace ITraitInfo interface with TraitInfo class.
This commit is contained in:
@@ -17,14 +17,14 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits.Render
|
||||
{
|
||||
[Desc("Display the time remaining until the next cash is given by actor's CashTrickler trait.")]
|
||||
class CashTricklerBarInfo : ITraitInfo, Requires<CashTricklerInfo>
|
||||
class CashTricklerBarInfo : TraitInfo, Requires<CashTricklerInfo>
|
||||
{
|
||||
[Desc("Defines to which players the bar is to be shown.")]
|
||||
public readonly Stance DisplayStances = Stance.Ally;
|
||||
|
||||
public readonly Color Color = Color.Magenta;
|
||||
|
||||
public object Create(ActorInitializer init) { return new CashTricklerBar(init.Self, this); }
|
||||
public override object Create(ActorInitializer init) { return new CashTricklerBar(init.Self, this); }
|
||||
}
|
||||
|
||||
class CashTricklerBar : ISelectionBar
|
||||
|
||||
Reference in New Issue
Block a user