Use nameof() in PaletteReference.

This commit is contained in:
Paul Chote
2020-08-15 11:12:53 +01:00
committed by abcdefg30
parent 0aa5e07252
commit ef69a3de66
31 changed files with 36 additions and 36 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Common.Traits
"'False' will make the missile continue until it hits the ground and disappears (without triggering another explosion).")]
public readonly bool RemoveMissileOnDetonation = true;
[PaletteReference("IsPlayerPalette")]
[PaletteReference(nameof(IsPlayerPalette))]
[Desc("Palette to use for the missile weapon image.")]
public readonly string MissilePalette = "effect";
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Delay in ticks until trail animation is spawned.")]
public readonly int TrailDelay = 1;
[PaletteReference("TrailUsePlayerPalette")]
[PaletteReference(nameof(TrailUsePlayerPalette))]
[Desc("Palette used to render the trail sequence.")]
public readonly string TrailPalette = "effect";