Change classes that use FieldLoader to use read-only collections.
This commit is contained in:
committed by
Paul Chote
parent
797c71e500
commit
649e7e8c28
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -19,9 +19,9 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
public class WithProductionIconOverlayInfo : TraitInfo<WithProductionIconOverlay>, IRulesetLoaded
|
||||
{
|
||||
[FieldLoader.Require]
|
||||
public readonly string[] Types = [];
|
||||
public readonly ImmutableArray<string> Types = [];
|
||||
|
||||
public readonly string[] Prerequisites = [];
|
||||
public readonly ImmutableArray<string> Prerequisites = [];
|
||||
|
||||
public virtual void RulesetLoaded(Ruleset rules, ActorInfo ai)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user