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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user