Change classes that use FieldLoader to use read-only collections.

This commit is contained in:
RoosterDragon
2025-11-08 12:40:56 +00:00
committed by Paul Chote
parent 797c71e500
commit 649e7e8c28
308 changed files with 1233 additions and 901 deletions

View File

@@ -27,11 +27,11 @@ namespace OpenRA.Mods.Common.Traits
public sealed class TilingPathToolInfo : TraitInfo
{
[Desc("The preferred defaults for the start type.")]
public readonly string[] DefaultStart = [];
public readonly ImmutableArray<string> DefaultStart = [];
[Desc("The preferred defaults for the inner type.")]
public readonly string[] DefaultInner = [];
public readonly ImmutableArray<string> DefaultInner = [];
[Desc("The preferred defaults for the end type.")]
public readonly string[] DefaultEnd = [];
public readonly ImmutableArray<string> DefaultEnd = [];
public override object Create(ActorInitializer init)
{