Add a sequence reference attribute to label fallbacks.

This commit is contained in:
Matthias Mailänder
2020-05-17 14:45:51 +02:00
committed by teinarss
parent 336656e8f7
commit 3a427c3630
4 changed files with 12 additions and 4 deletions

View File

@@ -55,10 +55,12 @@ namespace OpenRA.Traits
{
public readonly string ImageReference; // The field name in the same trait info that contains the image name.
public readonly bool Prefix;
public SequenceReferenceAttribute(string imageReference = null, bool prefix = false)
public readonly bool ActorNameFallback;
public SequenceReferenceAttribute(string imageReference = null, bool prefix = false, bool actorNameFallback = false)
{
ImageReference = imageReference;
Prefix = prefix;
ActorNameFallback = actorNameFallback;
}
}