Converted lists to hashsets where appropriate

Removed unnecessary uses of  ToList()
string to mongoId conversions
This commit is contained in:
Chomp
2025-07-24 13:26:34 +01:00
parent 6079e282f5
commit f562c634a7
44 changed files with 106 additions and 126 deletions
@@ -54,7 +54,7 @@ public record GenerateEquipmentProperties
/// OPTIONAL - Do not generate mods for tpls in this array
/// </summary>
[JsonPropertyName("generateModsBlacklist")]
public HashSet<string>? GenerateModsBlacklist { get; set; }
public HashSet<MongoId>? GenerateModsBlacklist { get; set; }
[JsonPropertyName("generatingPlayerLevel")]
public double? GeneratingPlayerLevel { get; set; }
@@ -30,7 +30,7 @@ public record ModToSpawnRequest
/// Parent slot the item will be a part of
/// </summary>
[JsonPropertyName("botWeaponSightWhitelist")]
public Dictionary<MongoId, List<MongoId>>? BotWeaponSightWhitelist { get; set; }
public Dictionary<MongoId, HashSet<MongoId>>? BotWeaponSightWhitelist { get; set; }
/// <summary>
/// Blacklist to prevent mods from being picked