Change classes that use FieldLoader to use read-only collections.
This commit is contained in:
committed by
Paul Chote
parent
797c71e500
commit
649e7e8c28
@@ -10,6 +10,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Frozen;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.FileSystem;
|
||||
@@ -112,7 +113,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
readonly Widget widget;
|
||||
readonly DropDownButtonWidget gameModeDropdown;
|
||||
readonly ModData modData;
|
||||
readonly HashSet<string> remoteMapPool;
|
||||
readonly FrozenSet<string> remoteMapPool;
|
||||
readonly ScrollItemWidget itemTemplate;
|
||||
readonly MapVisibility filter;
|
||||
|
||||
@@ -138,7 +139,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
Func<MapPreview, long> orderByFunc;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
internal MapChooserLogic(Widget widget, ModData modData, string initialMap, MapGenerationArgs initialGeneratedMap, HashSet<string> remoteMapPool,
|
||||
internal MapChooserLogic(Widget widget, ModData modData, string initialMap, MapGenerationArgs initialGeneratedMap, FrozenSet<string> remoteMapPool,
|
||||
MapClassification initialTab, Action onExit, Action<string> onSelect, Action<MapGenerationArgs> onSelectGenerated, MapVisibility filter)
|
||||
{
|
||||
this.widget = widget;
|
||||
|
||||
Reference in New Issue
Block a user