Replace ITraitInfo interface with TraitInfo class.

This commit is contained in:
Paul Chote
2020-05-11 18:12:19 +01:00
committed by reaperrr
parent 3cd7ec3878
commit 86f61298e6
243 changed files with 510 additions and 505 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits.Sound
{
[Desc("Players will be notified when this actor becomes visible to them.",
"Requires the 'EnemyWatcher' trait on the player actor.")]
public class AnnounceOnSeenInfo : ITraitInfo
public class AnnounceOnSeenInfo : TraitInfo
{
[Desc("Should there be a radar ping on enemies' radar at the actor's location when they see him")]
public readonly bool PingRadar = false;
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Traits.Sound
public readonly bool AnnounceNeutrals = false;
public object Create(ActorInitializer init) { return new AnnounceOnSeen(init.Self, this); }
public override object Create(ActorInitializer init) { return new AnnounceOnSeen(init.Self, this); }
}
public class AnnounceOnSeen : INotifyDiscovered