Change classes that use FieldLoader to use read-only collections.
This commit is contained in:
committed by
Paul Chote
parent
797c71e500
commit
649e7e8c28
@@ -11,6 +11,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Mods.Common.Traits.Render;
|
||||
@@ -42,10 +43,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
[Desc("Muzzle position relative to turret or body, (forward, right, up) triples.",
|
||||
"If weapon Burst = 1, it cycles through all listed offsets, otherwise the offset corresponding to current burst is used.")]
|
||||
public readonly WVec[] LocalOffset = [];
|
||||
public readonly ImmutableArray<WVec> LocalOffset = [];
|
||||
|
||||
[Desc("Muzzle yaw relative to turret or body.")]
|
||||
public readonly WAngle[] LocalYaw = [];
|
||||
public readonly ImmutableArray<WAngle> LocalYaw = [];
|
||||
|
||||
[Desc("Move the turret backwards when firing.")]
|
||||
public readonly WDist Recoil = WDist.Zero;
|
||||
|
||||
Reference in New Issue
Block a user