Use nameof() to reference image fields.

This commit is contained in:
Paul Chote
2020-08-15 11:00:11 +01:00
committed by abcdefg30
parent ac8b312140
commit cd9bf53e1a
37 changed files with 72 additions and 72 deletions

View File

@@ -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";