Change FieldLoader.LoadUsing to use nameof

This commit is contained in:
teinarss
2021-02-28 17:31:18 +01:00
committed by abcdefg30
parent 6b794ba3e5
commit 53b781960c
12 changed files with 15 additions and 15 deletions

View File

@@ -121,10 +121,10 @@ namespace OpenRA.GameRules
[Desc("Does this weapon aim at the target's center regardless of other targetable offsets?")]
public readonly bool TargetActorCenter = false;
[FieldLoader.LoadUsing("LoadProjectile")]
[FieldLoader.LoadUsing(nameof(LoadProjectile))]
public readonly IProjectileInfo Projectile;
[FieldLoader.LoadUsing("LoadWarheads")]
[FieldLoader.LoadUsing(nameof(LoadWarheads))]
public readonly List<IWarhead> Warheads = new List<IWarhead>();
public WeaponInfo(string name, MiniYaml content)