Make WithTurret fields readonly.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user