Make WithTurret fields readonly.

This commit is contained in:
Paul Chote
2015-08-01 13:32:05 +01:00
parent d20819735c
commit 4e27ac9aac

View File

@@ -58,11 +58,11 @@ namespace OpenRA.Mods.Common.Traits
public class WithTurret : UpgradableTrait<WithTurretInfo>, ITick, INotifyDamageStateChanged public class WithTurret : UpgradableTrait<WithTurretInfo>, ITick, INotifyDamageStateChanged
{ {
RenderSprites rs; readonly RenderSprites rs;
IBodyOrientation body; readonly IBodyOrientation body;
AttackBase ab; readonly AttackBase ab;
Turreted t; readonly Turreted t;
Armament[] arms; readonly Armament[] arms;
public readonly Animation DefaultAnimation; public readonly Animation DefaultAnimation;
public WithTurret(Actor self, WithTurretInfo info) public WithTurret(Actor self, WithTurretInfo info)