Change FieldLoader.LoadUsing to use nameof
This commit is contained in:
@@ -76,7 +76,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Types of damage that are caused while crushing. Leave empty for no damage types.")]
|
||||
public readonly BitSet<DamageType> CrushDamageTypes = default(BitSet<DamageType>);
|
||||
|
||||
[FieldLoader.LoadUsing("LoadSpeeds", true)]
|
||||
[FieldLoader.LoadUsing(nameof(LoadSpeeds), true)]
|
||||
[Desc("Lower the value on rough terrain. Leave out entries for impassable terrain.")]
|
||||
public readonly Dictionary<string, TerrainInfo> TerrainSpeeds;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user