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

@@ -25,11 +25,11 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Sequence image where the selection overlay types are defined.")]
public readonly string Image = "editor-overlay";
[SequenceReference("Image")]
[SequenceReference(nameof(Image))]
[Desc("Sequence to use for the copy overlay.")]
public readonly string CopySequence = "copy";
[SequenceReference("Image")]
[SequenceReference(nameof(Image))]
[Desc("Sequence to use for the paste overlay.")]
public readonly string PasteSequence = "paste";