Format Style Fixes

This commit is contained in:
sp-tarkov-bot
2025-08-21 09:46:00 +00:00
parent d14e7cc155
commit 48b00a2814
260 changed files with 26 additions and 1783 deletions
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record BotDetailsForChatMessages
{
public string Nickname { get; set; } = string.Empty;
public DogtagSide Side { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record BotGenerationDetails
{
/// <summary>
/// Should the bot be generated as a PMC
/// </summary>
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record BotLootCache
{
[JsonPropertyName("backpackLoot")]
public Dictionary<MongoId, double> BackpackLoot { get; set; } = [];
@@ -49,8 +47,6 @@ public record BotLootCache
public record LootCacheType
{
public const string Special = "Special";
public const string Backpack = "Backpack";
public const string Pocket = "Pocket";
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record Bots
{
[JsonPropertyName("types")]
public required Dictionary<string, BotType?> Types { get; init; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record ChooseRandomCompatibleModResult
{
[JsonPropertyName("incompatible")]
public bool? Incompatible { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record FilterPlateModsForSlotByLevelResult
{
[JsonPropertyName("result")]
public Result? Result { get; set; }
@@ -8,8 +8,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record GenerateEquipmentProperties
{
public MongoId BotId { get; set; }
/// <summary>
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record GenerateWeaponRequest
{
/// <summary>
/// Weapon to add mods to / result that is returned
/// </summary>
@@ -71,8 +69,6 @@ public record GenerateWeaponRequest
public record BotData
{
/// <summary>
/// Role of bot weapon is generated for
/// </summary>
@@ -94,8 +90,6 @@ public record BotData
public record WeaponStats
{
[JsonPropertyName("hasOptic")]
public bool? HasOptic { get; set; }
@@ -108,8 +102,6 @@ public record WeaponStats
public record BotModLimits
{
[JsonPropertyName("scope")]
public ItemCount? Scope { get; set; }
@@ -131,8 +123,6 @@ public record BotModLimits
public record ItemCount
{
[JsonPropertyName("count")]
public int? Count { get; set; }
}
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record GenerateWeaponResult
{
[JsonPropertyName("weapon")]
public List<Item>? Weapon { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record ItemSpawnLimitSettings
{
[JsonPropertyName("currentLimits")]
public Dictionary<MongoId, double>? CurrentLimits { get; set; }
@@ -8,8 +8,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Bots;
public record ModToSpawnRequest
{
/// <summary>
/// Slot mod will fit into
/// </summary>
@@ -27,8 +27,6 @@ public record AirdropConfig : BaseConfig
/// </summary>
public record AirdropLoot
{
[JsonPropertyName("icon")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public required AirdropTypeEnum Icon { get; set; }
@@ -22,8 +22,6 @@ public record BackupConfig : BaseConfig
public record BackupConfigInterval
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
@@ -10,8 +10,6 @@ public abstract record BaseConfig
public record RunIntervalValues
{
[JsonPropertyName("inRaid")]
public int InRaid { get; set; }
@@ -135,8 +135,6 @@ public record BotConfig : BaseConfig
public record WeeklyBossSettings
{
/// <summary>
/// Should a weekly boss be picked to 100% spawn
/// </summary>
@@ -159,8 +157,6 @@ public record WeeklyBossSettings
public record WalletLootSettings
{
/// <summary>
/// Chance wallets have loot in them
/// </summary>
@@ -185,8 +181,6 @@ public record WalletLootSettings
public record EquipmentFilters
{
/// <summary>
/// Limits for mod types per weapon .e.g. scopes
/// </summary>
@@ -289,8 +283,6 @@ public record EquipmentFilters
public record ModLimits
{
/// <summary>
/// How many scopes are allowed on a weapon - hard coded to work with OPTIC_SCOPE, ASSAULT_SCOPE, COLLIMATOR, COMPACT_COLLIMATOR
/// </summary>
@@ -306,8 +298,6 @@ public record ModLimits
public record RandomisationDetails
{
/// <summary>
/// Between what levels do these randomisation setting apply to
/// </summary>
@@ -359,8 +349,6 @@ public record RandomisationDetails
public record NighttimeChanges
{
/// <summary>
/// Applies changes to values stored in equipmentMods
/// </summary>
@@ -370,8 +358,6 @@ public record NighttimeChanges
public record EquipmentFilterDetails
{
/// <summary>
/// Between what levels do these equipment filter setting apply to
/// </summary>
@@ -393,8 +379,6 @@ public record EquipmentFilterDetails
public record WeightingAdjustmentDetails
{
/// <summary>
/// Between what levels do these weight settings apply to
/// </summary>
@@ -422,8 +406,6 @@ public record WeightingAdjustmentDetails
public record AdjustmentDetails
{
[JsonPropertyName("add")]
public Dictionary<string, Dictionary<MongoId, float>>? Add { get; set; }
@@ -433,8 +415,6 @@ public record AdjustmentDetails
public class ArmorPlateWeights
{
[JsonPropertyName("levelRange")]
public required MinMax<int> LevelRange { get; set; }
@@ -444,8 +424,6 @@ public class ArmorPlateWeights
public record RandomisedResourceDetails
{
[JsonPropertyName("food")]
public RandomisedResourceValues? Food { get; set; }
@@ -455,8 +433,6 @@ public record RandomisedResourceDetails
public record RandomisedResourceValues
{
/// <summary>
/// Minimum percent of item to randomized between min and max resource
/// </summary>
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Config;
public record BotDurability
{
[JsonPropertyName("default")]
public required DefaultDurability Default { get; set; }
@@ -21,8 +19,6 @@ public record BotDurability
/// </summary>
public record DefaultDurability
{
[JsonPropertyName("armor")]
public required ArmorDurability Armor { get; set; }
@@ -32,8 +28,6 @@ public record DefaultDurability
public record PmcDurability
{
[JsonPropertyName("armor")]
public required PmcDurabilityArmor Armor { get; set; }
@@ -43,8 +37,6 @@ public record PmcDurability
public record PmcDurabilityArmor
{
[JsonPropertyName("lowestMaxPercent")]
public int LowestMaxPercent { get; set; }
@@ -63,8 +55,6 @@ public record PmcDurabilityArmor
public record ArmorDurability
{
[JsonPropertyName("maxDelta")]
public int MaxDelta { get; set; }
@@ -83,8 +73,6 @@ public record ArmorDurability
public record WeaponDurability
{
[JsonPropertyName("lowestMax")]
public int LowestMax { get; set; }
@@ -69,8 +69,6 @@ public record CoreConfig : BaseConfig
public record BsgLogging
{
/// <summary>
/// verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals. <br />
/// complain to them about it! In all cases, better exceptions will be logged.<br />
@@ -95,8 +93,6 @@ public record BsgLogging
public record Release
{
/// <summary>
/// Disclaimer outlining the intended usage of bleeding edge
/// </summary>
@@ -178,8 +174,6 @@ public record Release
public record GameFixes
{
/// <summary>
/// Shotguns use a different value than normal guns causing huge pellet dispersion
/// </summary>
@@ -207,8 +201,6 @@ public record GameFixes
public record ServerFeatures
{
[JsonPropertyName("compressProfile")]
public bool CompressProfile { get; set; }
@@ -230,8 +222,6 @@ public record ServerFeatures
public record ChatbotFeatures
{
[JsonPropertyName("sptFriendGiftsEnabled")]
public bool SptFriendGiftsEnabled { get; set; }
@@ -256,8 +246,6 @@ public record ChatbotFeatures
public record CommandoFeatures
{
[JsonPropertyName("giveCommandEnabled")]
public bool GiveCommandEnabled { get; set; }
}
@@ -18,8 +18,6 @@ public record GiftsConfig : BaseConfig
public record Gift
{
/// <summary>
/// Items to send to player
/// </summary>
@@ -16,16 +16,12 @@ public record HealthConfig : BaseConfig
public record HealthMultipliers
{
[JsonPropertyName("blacked")]
public double Blacked { get; set; }
}
public record HealthSave
{
[JsonPropertyName("health")]
public bool Health { get; set; }
}
@@ -48,8 +48,6 @@ public record HideoutConfig : BaseConfig
public record HideoutCraftToAdd
{
/// <summary>
/// The new mongoId for the craft to use
/// </summary>
@@ -68,8 +66,6 @@ public record HideoutCraftToAdd
public record CultistCircleSettings
{
[JsonPropertyName("maxRewardItemCount")]
public int MaxRewardItemCount { get; set; }
@@ -145,8 +141,6 @@ public record CraftTimeThreshold : MinMax<int>
public record DirectRewardSettings
{
[JsonPropertyName("reward")]
public required List<MongoId> Reward { get; set; }
@@ -64,8 +64,6 @@ public record InRaidConfig : BaseConfig
public record RaidMenuSettings
{
[JsonPropertyName("aiAmount")]
public required string AiAmount { get; set; }
@@ -35,8 +35,6 @@ public record InventoryConfig : BaseConfig
public record RewardDetails
{
[JsonPropertyName("_type")]
public string? Type { get; set; }
@@ -55,8 +53,6 @@ public record RewardDetails
public record SealedAirdropContainerSettings
{
[JsonPropertyName("weaponRewardWeight")]
public required Dictionary<MongoId, double> WeaponRewardWeight { get; set; }
@@ -51,8 +51,6 @@ public record ItemConfig : BaseConfig
public record HandbookPriceOverride
{
/// <summary>
/// Price in roubles
/// </summary>
@@ -144,8 +144,6 @@ public record LocationConfig : BaseConfig
public record TransitSettings
{
[JsonPropertyName("effectsToRemove")]
public HashSet<string>? EffectsToRemove { get; set; }
@@ -158,8 +156,6 @@ public record TransitSettings
public record ReserveRaiderSpawnChanceOverrides
{
[JsonPropertyName("nonTriggered")]
public int NonTriggered { get; set; }
@@ -169,8 +165,6 @@ public record ReserveRaiderSpawnChanceOverrides
public record EquipmentLootSettings
{
/// <summary>
/// Percentage chance item will be added to equipment
/// </summary>
@@ -180,8 +174,6 @@ public record EquipmentLootSettings
public record RogueLighthouseSpawnTimeSettings
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
@@ -191,8 +183,6 @@ public record RogueLighthouseSpawnTimeSettings
public record CustomWaves
{
/// <summary>
/// Bosses spawn on raid start
/// </summary>
@@ -211,8 +201,6 @@ public record BotTypeLimit : MinMax<int>
public record ContainerRandomisationSettings
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
@@ -237,8 +225,6 @@ public record ContainerRandomisationSettings
public record ScavRaidTimeSettings
{
[JsonPropertyName("settings")]
public required ScavRaidTimeConfigSettings Settings { get; set; }
@@ -248,16 +234,12 @@ public record ScavRaidTimeSettings
public record ScavRaidTimeConfigSettings
{
[JsonPropertyName("trainArrivalDelayObservedSeconds")]
public int TrainArrivalDelayObservedSeconds { get; set; }
}
public record ScavRaidTimeLocationSettings
{
/// <summary>
/// Should loot be reduced by same percent length of raid is reduced by
/// </summary>
@@ -31,8 +31,6 @@ public record LostOnDeathConfig : BaseConfig
public record LostEquipment
{
[JsonPropertyName("ArmBand")]
public bool ArmBand { get; set; }
@@ -16,8 +16,6 @@ public record PlayerScavConfig : BaseConfig
public record KarmaLevel
{
[JsonPropertyName("botTypeForLoot")]
public required string BotTypeForLoot { get; set; }
@@ -36,8 +34,6 @@ public record KarmaLevel
public record Modifiers
{
[JsonPropertyName("equipment")]
public required Dictionary<string, double> Equipment { get; set; }
@@ -16,8 +16,6 @@ public record PmcChatResponse : BaseConfig
public record ResponseSettings
{
[JsonPropertyName("responseChancePercent")]
public double ResponseChancePercent { get; set; }
@@ -151,8 +151,6 @@ public record PmcConfig : BaseConfig
public record ForceArmbandSettings
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
@@ -165,8 +163,6 @@ public record ForceArmbandSettings
public record PmcLootSettings
{
[JsonPropertyName("pocket")]
public LootContainerSettings Pocket { get; set; }
@@ -179,8 +175,6 @@ public record PmcLootSettings
public record LootContainerSettings
{
[JsonPropertyName("totalRubByLevel")]
public List<MinMaxLootValue> TotalRubByLevel { get; set; }
@@ -190,8 +184,6 @@ public record LootContainerSettings
public record HostilitySettings
{
/// <summary>
/// Bot roles that are 100% an enemy
/// </summary>
@@ -225,8 +217,6 @@ public record HostilitySettings
public record SlotLootSettings
{
/// <summary>
/// Item Type whitelist
/// </summary>
@@ -74,8 +74,6 @@ public record QuestConfig : BaseConfig
public record RepeatableQuestTemplates
{
/// <summary>
/// Pmc repeatable quest template ids keyed by type of quest
/// Keys: elimination, completion, exploration
@@ -93,8 +91,6 @@ public record RepeatableQuestTemplates
public record EventQuestData
{
/// <summary>
/// Name of the event quest
/// </summary>
@@ -129,8 +125,6 @@ public record EventQuestData
public record RepeatableQuestConfig
{
/// <summary>
/// Id for type of repeatable quest
/// </summary>
@@ -244,8 +238,6 @@ public record RepeatableQuestConfig
public record RewardScaling
{
/// <summary>
/// Levels at which to increase to the next level of reward potential
/// </summary>
@@ -303,8 +295,6 @@ public record RewardScaling
public record TraderWhitelist
{
/// <summary>
/// Trader Id
/// </summary>
@@ -344,8 +334,6 @@ public record TraderWhitelist
public record RepeatableQuestTypesConfig
{
/// <summary>
/// Defines exploration repeatable task generation parameters
/// </summary>
@@ -394,8 +382,6 @@ public record Exploration : BaseQuestConfig
public record SpecificExits
{
/// <summary>
/// Chance that an operational task is generated with a specific extract
/// </summary>
@@ -485,8 +471,6 @@ public record Pickup : BaseQuestConfig
public record PickupTypeWithMaxCount
{
[JsonPropertyName("itemType")]
public string? ItemType { get; set; }
@@ -616,8 +600,6 @@ public record EliminationConfig : BaseQuestConfig
public record BaseQuestConfig
{
/// <summary>
/// Possible skills that can be rewarded expirence points
/// </summary>
@@ -627,8 +609,6 @@ public record BaseQuestConfig
public record BossInfo
{
/// <summary>
/// Is this target a boss
/// </summary>
@@ -41,8 +41,6 @@ public record RagfairConfig : BaseConfig
public record Sell
{
/// <summary>
/// Should a fee be deducted from player when listing an item for sale
/// </summary>
@@ -70,8 +68,6 @@ public record Sell
public record Chance
{
/// <summary>
/// Base chance percent to sell an item
/// </summary>
@@ -99,8 +95,6 @@ public record Chance
public record Dynamic
{
/// <summary>
/// Should a purchased dynamic offers items be flagged as found in raid
/// </summary>
@@ -237,8 +231,6 @@ public record Dynamic
public record PriceRanges
{
[JsonPropertyName("default")]
public required MinMax<double> Default { get; set; }
@@ -251,8 +243,6 @@ public record PriceRanges
public record BarterDetails
{
/// <summary>
/// Percentage change an offer is listed as a barter
/// </summary>
@@ -298,8 +288,6 @@ public record BarterDetails
public record PackDetails
{
/// <summary>
/// Percentage change an offer is listed as a pack
/// </summary>
@@ -327,8 +315,6 @@ public record PackDetails
public record OfferAdjustment
{
/// <summary>
/// Shuld offer price be adjusted when below handbook price
/// </summary>
@@ -356,8 +342,6 @@ public record OfferAdjustment
public record Condition
{
/// <summary>
/// Percentage change durability is altered
/// </summary>
@@ -376,8 +360,6 @@ public record Condition
public record RagfairBlacklist
{
/// <summary>
/// Damaged ammo packs
/// </summary>
@@ -429,8 +411,6 @@ public record RagfairBlacklist
public record ArmorPlateBlacklistSettings
{
/// <summary>
/// Max level of plates an armor can have without being removed
/// </summary>
@@ -446,8 +426,6 @@ public record ArmorPlateBlacklistSettings
public record UnreasonableModPrices
{
/// <summary>
/// Enable a system that adjusts very high ragfair prices to be below a max multiple of items the handbook values
/// </summary>
@@ -472,8 +450,6 @@ public record UnreasonableModPrices
public record ArmorSettings
{
/// <summary>
/// % chance / 100 that armor plates will be removed from an offer before listing
/// </summary>
@@ -489,8 +465,6 @@ public record ArmorSettings
public record TieredFlea
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
@@ -38,8 +38,6 @@ public record RepairConfig : BaseConfig
public record IntellectGainValues
{
[JsonPropertyName("weapon")]
public double Weapon { get; set; }
@@ -49,8 +47,6 @@ public record IntellectGainValues
public record MaxIntellectGainValues
{
[JsonPropertyName("kit")]
public double Kit { get; set; }
@@ -60,8 +56,6 @@ public record MaxIntellectGainValues
public record WeaponTreatmentRepairValues
{
/// <summary>
/// The chance to gain more weapon maintenance skill
/// </summary>
@@ -89,8 +83,6 @@ public record WeaponTreatmentRepairValues
public record RepairKit
{
[JsonPropertyName("armor")]
public required BonusSettings Armor { get; set; }
@@ -106,8 +98,6 @@ public record RepairKit
public record BonusSettings
{
[JsonPropertyName("rarityWeight")]
public required Dictionary<string, double> RarityWeight { get; set; }
@@ -123,8 +113,6 @@ public record BonusSettings
public record BonusValues
{
[JsonPropertyName("valuesMinMax")]
public required MinMax<double> ValuesMinMax { get; set; }
@@ -35,8 +35,6 @@ public record ScavCaseConfig : BaseConfig
public record MoneyRewards
{
[JsonPropertyName("moneyRewardChancePercent")]
public int MoneyRewardChancePercent { get; set; }
@@ -55,8 +53,6 @@ public record MoneyRewards
public record MoneyLevels
{
[JsonPropertyName("common")]
public required MinMax<int> Common { get; set; }
@@ -69,8 +65,6 @@ public record MoneyLevels
public record AmmoRewards
{
[JsonPropertyName("ammoRewardChancePercent")]
public int AmmoRewardChancePercent { get; set; }
@@ -65,8 +65,6 @@ public record SeasonalEventConfig : BaseConfig
public record SeasonalEvent
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
@@ -104,8 +102,6 @@ public record SeasonalEvent
public record SeasonalEventSettings
{
[JsonPropertyName("enableSummoning")]
public bool? EnableSummoning { get; set; }
@@ -148,8 +144,6 @@ public record SeasonalEventSettings
public record ZombieSettings
{
[JsonPropertyName("enabled")]
public bool? Enabled { get; set; }
@@ -165,8 +159,6 @@ public record ZombieSettings
public record GifterSetting
{
[JsonPropertyName("map")]
public string? Map { get; set; }
@@ -36,8 +36,6 @@ public record TraderConfig : BaseConfig
public record UpdateTime
{
[JsonPropertyName("_name")]
public string Name { get; set; } = string.Empty;
@@ -53,8 +51,6 @@ public record UpdateTime
public record FenceConfig
{
[JsonPropertyName("discountOptions")]
public required DiscountOptions DiscountOptions { get; set; }
@@ -157,8 +153,6 @@ public record FenceConfig
public record ItemDurabilityCurrentMax
{
[JsonPropertyName("current")]
public required MinMax<double> Current { get; set; }
@@ -183,8 +177,6 @@ public record CoopExtractReward : LootRequest
public record DiscountOptions
{
[JsonPropertyName("assortSize")]
public int AssortSize { get; set; }
@@ -206,8 +198,6 @@ public record DiscountOptions
/// </summary>
public record ModdedTraders
{
/// <summary>
/// Trader Ids to enable the clothing service for
/// </summary>
@@ -25,8 +25,6 @@ public record WeatherConfig : BaseConfig
public record SeasonDateTimes
{
[JsonPropertyName("seasonType")]
public Season? SeasonType { get; set; }
@@ -52,8 +50,6 @@ public record SeasonDateTimes
public record WeatherValues
{
[JsonPropertyName("seasonValues")]
public Dictionary<string, SeasonalValues>? SeasonValues { get; set; }
@@ -72,8 +68,6 @@ public record WeatherValues
public record SeasonalValues
{
[JsonPropertyName("clouds")]
public WeatherSettings<double>? Clouds { get; set; }
@@ -104,8 +98,6 @@ public record SeasonalValues
public record TempDayNight
{
[JsonPropertyName("day")]
public MinMax<double>? Day { get; set; }
@@ -115,8 +107,6 @@ public record TempDayNight
public record WeatherSettings<T>
{
[JsonPropertyName("values")]
public List<T>? Values { get; set; }
@@ -8,8 +8,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Dialog;
public record SendMessageDetails
{
/// <summary>
/// Player id
/// </summary>
@@ -91,8 +89,6 @@ public record SendMessageDetails
public record ProfileChangeEvent
{
[JsonPropertyName("_id")]
public MongoId? Id { get; set; }
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Fence;
public record CreateFenceAssortsResult
{
[JsonPropertyName("sptItems")]
public List<List<Item>>? SptItems { get; set; }
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Fence;
public record FenceAssortGenerationValues
{
[JsonPropertyName("normal")]
public GenerationAssortValues? Normal { get; set; }
@@ -15,8 +13,6 @@ public record FenceAssortGenerationValues
public record GenerationAssortValues
{
[JsonPropertyName("item")]
public int? Item { get; set; }
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Helper;
public record WeightedRandomResult<T>
{
public required T Item { get; set; }
public required int Index { get; set; }
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Hideout;
public record CircleCraftDetails
{
[JsonPropertyName("time")]
public required long Time { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Hideout;
public record Hideout
{
[JsonPropertyName("areas")]
public required List<HideoutArea> Areas { get; init; }
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Hideout;
public record ScavCaseRewardCountsAndPrices
{
[JsonPropertyName("Common")]
public RewardCountAndPriceDetails? Common { get; set; }
@@ -18,8 +16,6 @@ public record ScavCaseRewardCountsAndPrices
public record RewardCountAndPriceDetails
{
[JsonPropertyName("minCount")]
public double? MinCount { get; set; }
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Inventory;
public class FindSlotResult
{
public FindSlotResult(bool success)
{
Success = success;
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Inventory;
public record ItemSize
{
[JsonPropertyName("width")]
public required int Width { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Inventory;
public record OwnerInventoryItems
{
/// <summary>
/// Inventory items from source
/// </summary>
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2CompatibleVersion : IRequestData
{
public required string SptVersion { get; set; }
public required string EftVersion { get; set; }
@@ -5,7 +5,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2LoginResponse : IRequestData
{
public required bool Response { get; set; }
}
@@ -6,7 +6,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2ModsResponse : IRequestData
{
public required Dictionary<string, AbstractModMetadata> Response { get; set; }
}
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2PasswordChangeResponse : IRequestData
{
public required bool Response { get; set; }
public required List<MiniProfile> Profiles { get; set; }
@@ -5,7 +5,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2PingResponse : IRequestData
{
public required string Response { get; set; }
}
@@ -6,7 +6,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2ProfileResponse : IRequestData
{
public SptProfile Response { get; set; }
}
@@ -6,7 +6,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2ProfilesResponse : IRequestData
{
public required List<MiniProfile> Response { get; set; }
}
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2RegisterResponse : IRequestData
{
public required bool Response { get; set; }
public required List<MiniProfile> Profiles { get; set; }
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2RemoveResponse : IRequestData
{
public required bool Response { get; set; }
public required List<MiniProfile> Profiles { get; set; }
@@ -5,7 +5,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public class LauncherV2TypesResponse : IRequestData
{
public required Dictionary<string, string> Response { get; set; }
}
@@ -5,7 +5,5 @@ namespace SPTarkov.Server.Core.Models.Spt.Launcher;
public record LauncherV2VersionResponse : IRequestData
{
public required LauncherV2CompatibleVersion Response { get; set; }
}
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Location;
public record RaidChanges
{
/// <summary>
/// What percentage of dynamic loot should the map contain
/// </summary>
@@ -51,8 +49,6 @@ public record RaidChanges
public record ExtractChange
{
[JsonPropertyName("Name")]
public string? Name { get; set; }
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Logging;
public record ClientLogRequest : IRequestData
{
[JsonPropertyName("Source")]
public string? Source { get; set; }
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Mod;
public class ModOrder
{
[JsonPropertyName("order")]
public List<string> Order { get; set; }
}
@@ -40,8 +40,6 @@ public record NewItemFromCloneDetails : NewItemDetailsBase
public record NewItemDetailsBase
{
[JsonPropertyName("fleaPriceRoubles")]
public double? FleaPriceRoubles { get; set; }
@@ -57,8 +55,6 @@ public record NewItemDetailsBase
public record LocaleDetails
{
[JsonPropertyName("name")]
public string? Name { get; set; }
@@ -71,8 +67,6 @@ public record LocaleDetails
public record CreateItemResult
{
public CreateItemResult()
{
Success = false;
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Mod;
public class SptMod
{
[JsonPropertyName("directory")]
public required string Directory { get; init; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Presets;
public record PresetCacheDetails
{
// Preset Ids related to the tpl
public HashSet<MongoId> PresetIds { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Quests;
public record GetRepeatableByIdResult
{
[JsonPropertyName("quest")]
public RepeatableQuest? Quest { get; set; }
@@ -7,8 +7,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Ragfair;
public record CreateFleaOfferDetails
{
/// <summary>
/// Owner of the offer
/// </summary>
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Ragfair;
public record RagfairServerPrices
{
[JsonPropertyName("staticPrices")]
public Dictionary<string, double>? StaticPrices { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Ragfair;
public record TplWithFleaPrice
{
[JsonPropertyName("tpl")]
public MongoId Tpl { get; set; }
@@ -4,8 +4,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Repeatable;
public record QuestRewardValues
{
[JsonPropertyName("skillPointReward")]
public required double SkillPointReward { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Repeatable;
public record QuestTypePool
{
[JsonPropertyName("types")]
public required List<string> Types { get; set; }
@@ -16,8 +14,6 @@ public record QuestTypePool
public record QuestPool
{
[JsonPropertyName("Exploration")]
public required ExplorationPool Exploration { get; set; }
@@ -30,24 +26,18 @@ public record QuestPool
public record ExplorationPool
{
[JsonPropertyName("locations")]
public Dictionary<ELocationName, List<string>>? Locations { get; set; } // TODO: check the type, originally - Partial<Record<ELocationName, string[]>>
}
public record EliminationPool
{
[JsonPropertyName("targets")]
public Dictionary<string, TargetLocation>? Targets { get; set; }
}
public record TargetLocation
{
[JsonPropertyName("locations")]
public List<string>? Locations { get; set; }
}
@@ -7,8 +7,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Server;
public record DatabaseTables
{
public required Bots.Bots Bots { get; init; }
public required Hideout.Hideout Hideout { get; init; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Server;
public record LocaleBase
{
/// <summary>
/// DO NOT USE THIS PROPERTY DIRECTLY, USE LOCALESERVICE INSTEAD
/// THIS IS LAZY LOADED AND YOUR CHANGES WILL NOT BE SAVED
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Server;
public record Locations
{
// sometimes we get the key or value given so save changing logic in each place
// have it key both
private readonly FrozenDictionary<string, string> _locationMappings = new Dictionary<string, string>
@@ -7,8 +7,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Server;
/// </summary>
public record ServerBase
{
[JsonPropertyName("ip")]
public required string Ip { get; set; }
@@ -5,16 +5,12 @@ namespace SPTarkov.Server.Core.Models.Spt.Server;
public record SettingsBase
{
[JsonPropertyName("config")]
public required Config Configuration { get; init; }
}
public record Config
{
[JsonPropertyName("AFKTimeoutSeconds")]
public int AFKTimeoutSeconds { get; set; }
@@ -102,8 +98,6 @@ public record Config
public record AudioSettings
{
[JsonPropertyName("AudioGroupPresets")]
public List<AudioGroupPreset> AudioGroupPresets { get; set; }
@@ -125,8 +119,6 @@ public record AudioSettings
public record FramerateLimit
{
[JsonPropertyName("MaxFramerateGameLimit")]
public int MaxFramerateGameLimit { get; set; }
@@ -139,8 +131,6 @@ public record FramerateLimit
public record MemoryManagementSettings
{
[JsonPropertyName("AggressiveGC")]
public bool AggressiveGC { get; set; }
@@ -162,8 +152,6 @@ public record MemoryManagementSettings
public record ReleaseProfiler
{
[JsonPropertyName("Enabled")]
public bool Enabled { get; set; }
@@ -176,8 +164,6 @@ public record ReleaseProfiler
public record NetworkStateView
{
[JsonPropertyName("LossThreshold")]
public int LossThreshold { get; set; }
@@ -187,8 +173,6 @@ public record NetworkStateView
public record AudioGroupPreset
{
[JsonPropertyName("AngleToAllowBinaural")]
public double? AngleToAllowBinaural { get; set; }
@@ -222,8 +206,6 @@ public record AudioGroupPreset
public record EnvironmentSettings
{
[JsonPropertyName("AutumnLateSettings")]
public SeasonEnvironmentSettings AutumnLateSettings { get; set; }
@@ -251,8 +233,6 @@ public record EnvironmentSettings
public record SeasonEnvironmentSettings
{
[JsonPropertyName("RainSettings")]
public List<RainSetting> RainSettings { get; set; }
@@ -265,8 +245,6 @@ public record SeasonEnvironmentSettings
public record SurfaceMultiplier
{
public string SurfaceType { get; set; }
public double VolumeMult { get; set; }
@@ -274,8 +252,6 @@ public record SurfaceMultiplier
public record WindMultiplier
{
[JsonPropertyName("VolumeMult")]
public double VolumeMult { get; set; }
@@ -285,8 +261,6 @@ public record WindMultiplier
public record RainSetting
{
[JsonPropertyName("IndoorVolumeMult")]
public int IndoorVolumeMult { get; set; }
@@ -299,8 +273,6 @@ public record RainSetting
public record HeadphoneSettings
{
public double FadeDuration { get; set; }
public string FadeIn { get; set; }
@@ -310,8 +282,6 @@ public record HeadphoneSettings
public record MetaXRAudioPluginSettings
{
public bool EnabledPluginErrorChecker { get; set; }
public double OutputVolumeCheckCooldown { get; set; }
@@ -7,8 +7,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Services;
public record InsuranceEquipmentPkg
{
[JsonPropertyName("sessionID")]
public MongoId SessionId { get; set; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Services;
public record LootItem
{
[JsonPropertyName("id")]
public MongoId? Id { get; set; }
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Services;
public record LootRequest
{
/// <summary>
/// Count of weapons to generate
/// </summary>
@@ -6,8 +6,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Services;
public class ProfileActivityData
{
public long ClientStartedTimestamp { get; set; }
public long LastActive { get; set; }
public ProfileActivityRaidData? RaidData { get; set; } = null;
@@ -16,8 +14,6 @@ public class ProfileActivityData
public class ProfileActivityRaidData
{
public GetRaidConfigurationRequestData? RaidConfiguration { get; set; } = null;
public RaidChanges? RaidAdjustments { get; set; } = null;
public LocationTransit? LocationTransit { get; set; } = null;
@@ -25,8 +21,6 @@ public class ProfileActivityRaidData
public record ProfileActiveClientMods
{
[JsonPropertyName("modName")]
public required string Name { get; init; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Services;
public record TraderServiceModel
{
[JsonPropertyName("serviceType")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public TraderServiceType? ServiceType { get; set; }
@@ -26,8 +24,6 @@ public record TraderServiceModel
public record TraderServiceRequirementsModel
{
[JsonPropertyName("completedQuests")]
public List<string>? CompletedQuests { get; set; }
@@ -7,8 +7,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Templates;
public record Templates
{
[JsonPropertyName("character")]
public required List<string> Character { get; init; }
@@ -5,8 +5,6 @@ namespace SPTarkov.Server.Core.Models.Spt.Weather;
public record GetLocalWeatherResponseData
{
[JsonPropertyName("season")]
public Season? Season { get; set; }