Use nameof() to reference image fields.
This commit is contained in:
@@ -23,11 +23,11 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
[Desc("Image used for this decoration. Defaults to the actor's type.")]
|
||||
public readonly string Image = null;
|
||||
|
||||
[SequenceReference("Image", allowNullImage: true)]
|
||||
[SequenceReference(nameof(Image), allowNullImage: true)]
|
||||
[Desc("Animation to play when the actor is created.")]
|
||||
public readonly string StartSequence = null;
|
||||
|
||||
[SequenceReference("Image", allowNullImage: true)]
|
||||
[SequenceReference(nameof(Image), allowNullImage: true)]
|
||||
[Desc("Sequence name to use")]
|
||||
public readonly string Sequence = "idle-overlay";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user