Replace ITraitInfo interface with TraitInfo class.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user