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,9 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System.Collections.Frozen;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Graphics;
|
||||
using OpenRA.Traits;
|
||||
@@ -31,13 +33,13 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
[Desc("Attack sequence to use for each armament.",
|
||||
"A dictionary of [armament name]: [sequence name(s)].",
|
||||
"Multiple sequence names can be defined to specify per-burst animations.")]
|
||||
public readonly Dictionary<string, string[]> AttackSequences = [];
|
||||
public readonly FrozenDictionary<string, ImmutableArray<string>> AttackSequences = FrozenDictionary<string, ImmutableArray<string>>.Empty;
|
||||
|
||||
[SequenceReference]
|
||||
public readonly string[] IdleSequences = [];
|
||||
public readonly ImmutableArray<string> IdleSequences = [];
|
||||
|
||||
[SequenceReference]
|
||||
public readonly string[] StandSequences = ["stand"];
|
||||
public readonly ImmutableArray<string> StandSequences = ["stand"];
|
||||
|
||||
[PaletteReference(nameof(IsPlayerPalette))]
|
||||
[Desc("Custom palette name")]
|
||||
|
||||
Reference in New Issue
Block a user