Made all projectile and warhead fields readonly

This came up while working on the new documentation generation and comparing the results to ORAIDE's own code parser.
This commit is contained in:
penev92
2022-04-25 03:21:36 +03:00
committed by abcdefg30
parent 2bac492a65
commit 86515610a5
2 changed files with 13 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Projectiles
[Desc("Scan radius for actors with projectile-blocking trait. If set to a negative value (default), it will automatically scale",
"to the blocker with the largest health shape. Only set custom values if you know what you're doing.")]
public WDist BlockerScanRadius = new WDist(-1);
public readonly WDist BlockerScanRadius = new WDist(-1);
public IProjectile Create(ProjectileArgs args) { return new InstantHit(this, args); }
}