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:
@@ -37,6 +37,19 @@ namespace OpenRA.Traits
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class LocomotorReferenceAttribute : Attribute { }
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class NotificationReferenceAttribute : Attribute
|
||||
{
|
||||
public readonly string NotificationTypeFieldName = null;
|
||||
public readonly string NotificationType = null;
|
||||
|
||||
public NotificationReferenceAttribute(string type = null, string typeFromField = null)
|
||||
{
|
||||
NotificationType = type;
|
||||
NotificationTypeFieldName = typeFromField;
|
||||
}
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class SequenceReferenceAttribute : Attribute
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user