Use nameof for additional robustness in trait documentation.
This commit is contained in:
committed by
Paul Chote
parent
52a4b5acd7
commit
6876fe45e1
@@ -1,6 +1,6 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
|
||||
* Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation, either version 3 of
|
||||
@@ -10,6 +10,7 @@
|
||||
#endregion
|
||||
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -45,7 +46,7 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
|
||||
int IWarhead.Delay => Delay;
|
||||
|
||||
[Desc("The color used for this warhead's visualization in the world's `WarheadDebugOverlay` trait.")]
|
||||
[Desc("The color used for this warhead's visualization in the world's `" + nameof(WarheadDebugOverlay) + "` trait.")]
|
||||
public readonly Color DebugOverlayColor = Color.Red;
|
||||
|
||||
protected bool IsValidTarget(BitSet<TargetableType> targetTypes)
|
||||
|
||||
Reference in New Issue
Block a user