Mongoid changes (#440)
* Remove old IsValidMongoId and Regex * Convert more configs to MongoId, as well as BaseClasses * Remove HashUtil.Generate(), replaced with new MongoId()
This commit is contained in:
@@ -121,7 +121,7 @@ public record BotModLimits
|
||||
public int? ScopeMax { get; set; }
|
||||
|
||||
[JsonPropertyName("scopeBaseTypes")]
|
||||
public List<string>? ScopeBaseTypes { get; set; }
|
||||
public List<MongoId>? ScopeBaseTypes { get; set; }
|
||||
|
||||
[JsonPropertyName("flashlightLaser")]
|
||||
public ItemCount? FlashlightLaser { get; set; }
|
||||
@@ -130,7 +130,7 @@ public record BotModLimits
|
||||
public int? FlashlightLaserMax { get; set; }
|
||||
|
||||
[JsonPropertyName("flashlightLaserBaseTypes")]
|
||||
public List<string>? FlashlightLaserBaseTypes { get; set; }
|
||||
public List<MongoId>? FlashlightLaserBaseTypes { get; set; }
|
||||
}
|
||||
|
||||
public record ItemCount
|
||||
|
||||
@@ -30,7 +30,7 @@ public record ModToSpawnRequest
|
||||
/// Parent slot the item will be a part of
|
||||
/// </summary>
|
||||
[JsonPropertyName("botWeaponSightWhitelist")]
|
||||
public Dictionary<string, List<string>>? BotWeaponSightWhitelist { get; set; }
|
||||
public Dictionary<MongoId, List<MongoId>>? BotWeaponSightWhitelist { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Blacklist to prevent mods from being picked
|
||||
|
||||
Reference in New Issue
Block a user