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:
Paul Chote
2018-09-25 20:42:32 +00:00
committed by abcdefg30
parent 096de8f5aa
commit 09d8aafddf
32 changed files with 148 additions and 0 deletions

View File

@@ -15,12 +15,14 @@ namespace OpenRA.Mods.Common.Traits.Sound
{
public class CaptureNotificationInfo : ITraitInfo
{
[NotificationReference("Speech")]
[Desc("The speech notification to play to the new owner.")]
public readonly string Notification = "BuildingCaptured";
[Desc("Specifies if Notification is played with the voice of the new owners faction.")]
public readonly bool NewOwnerVoice = true;
[NotificationReference("Speech")]
[Desc("The speech notification to play to the old owner.")]
public readonly string LoseNotification = null;