mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-14 17:07:35 +00:00
Change GamesPlayedWhileIdle to ImmutableList
Similar to FarmingOrders, the order of elements might be relevant in regards to games displayed e.g. in recently played.
This commit is contained in:
parent
e1e464b4e7
commit
776755d3ab
1 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ public sealed class BotConfig {
|
|||
public static readonly ImmutableList<EFarmingOrder> DefaultFarmingOrders = ImmutableList<EFarmingOrder>.Empty;
|
||||
|
||||
[PublicAPI]
|
||||
public static readonly ImmutableHashSet<uint> DefaultGamesPlayedWhileIdle = ImmutableHashSet<uint>.Empty;
|
||||
public static readonly ImmutableList<uint> DefaultGamesPlayedWhileIdle = ImmutableList<uint>.Empty;
|
||||
|
||||
[PublicAPI]
|
||||
public static readonly ImmutableHashSet<Asset.EType> DefaultLootableTypes = ImmutableHashSet.Create(Asset.EType.BoosterPack, Asset.EType.FoilTradingCard, Asset.EType.TradingCard);
|
||||
|
@ -177,7 +177,7 @@ public sealed class BotConfig {
|
|||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[MaxLength(ArchiHandler.MaxGamesPlayedConcurrently)]
|
||||
[SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
|
||||
public ImmutableHashSet<uint> GamesPlayedWhileIdle { get; private set; } = DefaultGamesPlayedWhileIdle;
|
||||
public ImmutableList<uint> GamesPlayedWhileIdle { get; private set; } = DefaultGamesPlayedWhileIdle;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[Range(byte.MinValue, byte.MaxValue)]
|
||||
|
@ -340,7 +340,7 @@ public sealed class BotConfig {
|
|||
public bool ShouldSerializeFarmPriorityQueueOnly() => !Saving || (FarmPriorityQueueOnly != DefaultFarmPriorityQueueOnly);
|
||||
|
||||
[UsedImplicitly]
|
||||
public bool ShouldSerializeGamesPlayedWhileIdle() => !Saving || ((GamesPlayedWhileIdle != DefaultGamesPlayedWhileIdle) && !GamesPlayedWhileIdle.SetEquals(DefaultGamesPlayedWhileIdle));
|
||||
public bool ShouldSerializeGamesPlayedWhileIdle() => !Saving || ((GamesPlayedWhileIdle != DefaultGamesPlayedWhileIdle) && !GamesPlayedWhileIdle.SequenceEqual(DefaultGamesPlayedWhileIdle));
|
||||
|
||||
[UsedImplicitly]
|
||||
public bool ShouldSerializeHoursUntilCardDrops() => !Saving || (HoursUntilCardDrops != DefaultHoursUntilCardDrops);
|
||||
|
|
Loading…
Reference in a new issue