Add a lint check for trait placement on hardcoded actor names.
This commit is contained in:
committed by
reaperrr
parent
0d3c624bbc
commit
5a0bcc01a6
@@ -105,4 +105,14 @@ namespace OpenRA.Traits
|
||||
PlayerPaletteReferenceSwitch = playerPaletteReferenceSwitch;
|
||||
}
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class TraitLocationAttribute : Attribute
|
||||
{
|
||||
public readonly SystemActors SystemActors;
|
||||
public TraitLocationAttribute(SystemActors systemActors)
|
||||
{
|
||||
SystemActors = systemActors;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user