Add a lint test for audio notifications.
Only traits are linted - the UI still hardcodes too many audio references for this to be worthwhile.
This commit is contained in:
@@ -26,10 +26,16 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Order name that toggles the condition.")]
|
||||
public readonly string OrderName = null;
|
||||
|
||||
[NotificationReference("Sounds")]
|
||||
public readonly string EnabledSound = null;
|
||||
|
||||
[NotificationReference("Speech")]
|
||||
public readonly string EnabledSpeech = null;
|
||||
|
||||
[NotificationReference("Sounds")]
|
||||
public readonly string DisabledSound = null;
|
||||
|
||||
[NotificationReference("Speech")]
|
||||
public readonly string DisabledSpeech = null;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new ToggleConditionOnOrder(init.Self, this); }
|
||||
|
||||
Reference in New Issue
Block a user