changed classes to records

This commit is contained in:
Alex
2025-01-17 18:13:37 +00:00
parent 7d9afa3cb4
commit c94408c596
322 changed files with 1201 additions and 1201 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Common;
public class MinMax
public record MinMax
{
[JsonPropertyName("type")]
public string? Type { get; set; }
@@ -3,13 +3,13 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Bot;
public class GenerateBotsRequestData : IRequestData
public record GenerateBotsRequestData : IRequestData
{
[JsonPropertyName("conditions")]
public List<GenerateCondition>? Conditions { get; set; }
}
public class GenerateCondition
public record GenerateCondition
{
/// <summary>
/// e.g. assault/pmcBot/bossKilla
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Bot;
public class RandomisedBotLevelResult
public record RandomisedBotLevelResult
{
[JsonPropertyName("level")]
public int? Level { get; set; }
+1 -1
View File
@@ -4,7 +4,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Builds;
public class SetMagazineRequest : IRequestData
public record SetMagazineRequest : IRequestData
{
[JsonPropertyName("Id")]
public string? Id { get; set; }
+1 -1
View File
@@ -2,6 +2,6 @@
namespace Core.Models.Eft.Common;
public class EmptyRequestData : IRequestData
public record EmptyRequestData : IRequestData
{
}
File diff suppressed because it is too large Load Diff
+16 -16
View File
@@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables;
namespace Core.Models.Eft.Common;
public class Location
public record Location
{
/** Map meta-data */
[JsonPropertyName("base")]
@@ -37,7 +37,7 @@ public class Location
public Dictionary<string, object>? Statics { get; set; }
}
public class StaticContainer
public record StaticContainer
{
[JsonPropertyName("containersGroups")]
public Dictionary<string, ContainerMinMax>? ContainersGroups { get; set; }
@@ -46,7 +46,7 @@ public class StaticContainer
public Dictionary<string, ContainerData>? Containers { get; set; }
}
public class ContainerMinMax
public record ContainerMinMax
{
[JsonPropertyName("minContainers")]
public int? MinContainers { get; set; }
@@ -61,13 +61,13 @@ public class ContainerMinMax
public int? ChosenCount { get; set; }
}
public class ContainerData
public record ContainerData
{
[JsonPropertyName("groupId")]
public string? GroupId { get; set; }
}
public class StaticLootDetails
public record StaticLootDetails
{
[JsonPropertyName("itemcountDistribution")]
public ItemCountDistribution[] ItemCountDistribution { get; set; }
@@ -76,7 +76,7 @@ public class StaticLootDetails
public ItemDistribution[] ItemDistribution { get; set; }
}
public class ItemCountDistribution
public record ItemCountDistribution
{
[JsonPropertyName("count")]
public int? Count { get; set; }
@@ -85,7 +85,7 @@ public class ItemCountDistribution
public float? RelativeProbability { get; set; }
}
public class ItemDistribution
public record ItemDistribution
{
[JsonPropertyName("tpl")]
public string? Tpl { get; set; }
@@ -94,7 +94,7 @@ public class ItemDistribution
public float? RelativeProbability { get; set; }
}
public class StaticPropsBase
public record StaticPropsBase
{
[JsonPropertyName("Id")]
public string? Id { get; set; }
@@ -130,13 +130,13 @@ public class StaticPropsBase
public Item[] Items { get; set; }
}
public class StaticWeaponProps : StaticPropsBase
public record StaticWeaponProps : StaticPropsBase
{
[JsonPropertyName("Items")]
public Item[] Items { get; set; }
}
public class StaticContainerDetails
public record StaticContainerDetails
{
[JsonPropertyName("staticWeapons")]
public StaticWeaponProps[] StaticWeapons { get; set; }
@@ -148,7 +148,7 @@ public class StaticContainerDetails
public StaticForcedProps[] StaticForced { get; set; }
}
public class StaticContainerData
public record StaticContainerData
{
[JsonPropertyName("probability")]
public float? Probability { get; set; }
@@ -157,7 +157,7 @@ public class StaticContainerData
public StaticContainerProps? Template { get; set; }
}
public class StaticAmmoDetails
public record StaticAmmoDetails
{
[JsonPropertyName("tpl")]
public string? Tpl { get; set; }
@@ -166,7 +166,7 @@ public class StaticAmmoDetails
public float? RelativeProbability { get; set; }
}
public class StaticForcedProps
public record StaticForcedProps
{
[JsonPropertyName("containerId")]
public string? ContainerId { get; set; }
@@ -175,13 +175,13 @@ public class StaticForcedProps
public string? ItemTpl { get; set; }
}
public class StaticContainerProps : StaticPropsBase
public record StaticContainerProps : StaticPropsBase
{
[JsonPropertyName("Items")]
public StaticItem[] Items { get; set; }
}
public class StaticItem
public record StaticItem
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -191,4 +191,4 @@ public class StaticItem
[JsonPropertyName("upd")]
public Upd? Upd { get; set; }
}
}
+27 -27
View File
@@ -3,7 +3,7 @@ using Core.Models.Common;
namespace Core.Models.Eft.Common;
public class LocationBase
public record LocationBase
{
[JsonPropertyName("AccessKeys")]
public List<string>? AccessKeys { get; set; }
@@ -329,7 +329,7 @@ public class LocationBase
public List<Wave>? Waves { get; set; }
}
public class Transit
public record Transit
{
[JsonPropertyName("activateAfterSec")]
public int? ActivateAfterSeconds { get; set; } // TODO: Int in client
@@ -362,7 +362,7 @@ public class Transit
public int? Time { get; set; }
}
public class NonWaveGroupScenario
public record NonWaveGroupScenario
{
[JsonPropertyName("Chance")]
public double? Chance { get; set; }
@@ -377,7 +377,7 @@ public class NonWaveGroupScenario
public int? MinimumToBeGrouped { get; set; }
}
public class Limit : MinMax
public record Limit : MinMax
{
[JsonPropertyName("items")]
public object[] Items { get; set; } // TODO: was on TS any[] hmmm..
@@ -389,7 +389,7 @@ public class Limit : MinMax
public int? Max { get; set; }
}
public class AirdropParameter
public record AirdropParameter
{
[JsonPropertyName("AirdropPointDeactivateDistance")]
public int? AirdropPointDeactivateDistance { get; set; }
@@ -422,7 +422,7 @@ public class AirdropParameter
public int? UnsuccessfulTryPenalty { get; set; }
}
public class Banner
public record Banner
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -431,7 +431,7 @@ public class Banner
public Pic? Picture { get; set; }
}
public class Pic
public record Pic
{
[JsonPropertyName("path")]
public string? Path { get; set; }
@@ -440,7 +440,7 @@ public class Pic
public string? Rcid { get; set; }
}
public class BossLocationSpawn
public record BossLocationSpawn
{
[JsonPropertyName("BossChance")]
public double? BossChance { get; set; }
@@ -503,7 +503,7 @@ public class BossLocationSpawn
public string[] SpawnMode { get; set; }
}
public class BossSupport
public record BossSupport
{
[JsonPropertyName("BossEscortAmount")]
public string? BossEscortAmount { get; set; }
@@ -515,7 +515,7 @@ public class BossSupport
public string? BossEscortType { get; set; }
}
public class BotLocationModifier
public record BotLocationModifier
{
[JsonPropertyName("AccuracySpeed")]
public double? AccuracySpeed { get; set; }
@@ -563,7 +563,7 @@ public class BotLocationModifier
public double? MinExfiltrationTime { get; set; }
}
public class AdditionalHostilitySettings
public record AdditionalHostilitySettings
{
[JsonPropertyName("AlwaysEnemies")]
public List<string>? AlwaysEnemies { get; set; }
@@ -602,7 +602,7 @@ public class AdditionalHostilitySettings
public List<string>? Warn { get; set; }
}
public class ChancedEnemy
public record ChancedEnemy
{
[JsonPropertyName("EnemyChance")]
public int? EnemyChance { get; set; }
@@ -611,13 +611,13 @@ public class ChancedEnemy
public string? Role { get; set; }
}
public class MinMaxBot : MinMax
public record MinMaxBot : MinMax
{
[JsonPropertyName("WildSpawnType")]
public object? WildSpawnType { get; set; } // TODO: Could be WildSpawnType or string
}
public class MinPlayerWaitTime
public record MinPlayerWaitTime
{
[JsonPropertyName("minPlayers")]
public int? MinPlayers { get; set; }
@@ -626,7 +626,7 @@ public class MinPlayerWaitTime
public int? Time { get; set; }
}
public class Preview
public record Preview
{
[JsonPropertyName("path")]
public string? Path { get; set; }
@@ -635,7 +635,7 @@ public class Preview
public string? Rcid { get; set; }
}
public class Scene
public record Scene
{
[JsonPropertyName("path")]
public string? Path { get; set; }
@@ -644,7 +644,7 @@ public class Scene
public string? Rcid { get; set; }
}
public class SpawnPointParam
public record SpawnPointParam
{
[JsonPropertyName("BotZoneName")]
public string? BotZoneName { get; set; }
@@ -677,7 +677,7 @@ public class SpawnPointParam
public List<string>? Sides { get; set; }
}
public class ColliderParams
public record ColliderParams
{
[JsonPropertyName("_parent")]
public string? Parent { get; set; }
@@ -686,7 +686,7 @@ public class ColliderParams
public Props? Props { get; set; }
}
public class Props
public record Props
{
[JsonPropertyName("Center")]
public XYZ? Center { get; set; }
@@ -698,7 +698,7 @@ public class Props
public double? Radius { get; set; }
}
public class Exit
public record Exit
{
/** % Chance out of 100 exit will appear in raid */
[JsonPropertyName("Chance")]
@@ -785,7 +785,7 @@ public class Exit
public string? Side { get; set; }
}
public class MaxItemCountInLocation
public record MaxItemCountInLocation
{
[JsonPropertyName("TemplateId")]
public string? TemplateId { get; set; }
@@ -794,7 +794,7 @@ public class MaxItemCountInLocation
public int? Value { get; set; }
}
public class Wave
public record Wave
{
[JsonPropertyName("BotPreset")]
public string? BotPreset { get; set; }
@@ -842,7 +842,7 @@ public class Wave
public string? OpenZones { get; set; }
}
public class LocationEvents
public record LocationEvents
{
[JsonPropertyName("Halloween2024")]
public Halloween2024? Halloween2024 { get; set; }
@@ -850,12 +850,12 @@ public class LocationEvents
public Khorovod? Khorovod { get; set; }
}
public class Khorovod
public record Khorovod
{
public double? Chance { get; set; }
}
public class Halloween2024
public record Halloween2024
{
[JsonPropertyName("CrowdAttackBlockRadius")]
public int? CrowdAttackBlockRadius { get; set; }
@@ -902,7 +902,7 @@ public class Halloween2024
public Khorovod? Khorovod { get; set; }
}
public class CrowdAttackSpawnParam
public record CrowdAttackSpawnParam
{
[JsonPropertyName("Difficulty")]
public string? Difficulty { get; set; }
@@ -914,7 +914,7 @@ public class CrowdAttackSpawnParam
public int? Weight { get; set; }
}
public class Area
public record Area
{
[JsonPropertyName("center")]
public XYZ? Center { get; set; }
+9 -9
View File
@@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables;
namespace Core.Models.Eft.Common;
public class LooseLoot
public record LooseLoot
{
[JsonPropertyName("spawnpointCount")]
public SpawnpointCount? SpawnpointCount { get; set; }
@@ -15,7 +15,7 @@ public class LooseLoot
public List<Spawnpoint>? Spawnpoints { get; set; }
}
public class SpawnpointCount
public record SpawnpointCount
{
[JsonPropertyName("mean")]
public double? Mean { get; set; }
@@ -24,7 +24,7 @@ public class SpawnpointCount
public double? Std { get; set; }
}
public class SpawnpointsForced
public record SpawnpointsForced
{
[JsonPropertyName("locationId")]
public string? LocationId { get; set; }
@@ -36,7 +36,7 @@ public class SpawnpointsForced
public SpawnpointTemplate? Template { get; set; }
}
public class SpawnpointTemplate
public record SpawnpointTemplate
{
[JsonPropertyName("Id")]
public string? Id { get; set; }
@@ -72,7 +72,7 @@ public class SpawnpointTemplate
public List<Item>? Items { get; set; }
}
public class GroupPosition
public record GroupPosition
{
[JsonPropertyName("Name")]
public string? Name { get; set; }
@@ -87,7 +87,7 @@ public class GroupPosition
public XYZ? Rotation { get; set; }
}
public class Spawnpoint
public record Spawnpoint
{
[JsonPropertyName("locationId")]
public string? LocationId { get; set; }
@@ -102,7 +102,7 @@ public class Spawnpoint
public List<LooseLootItemDistribution>? ItemDistribution { get; set; }
}
public class LooseLootItemDistribution
public record LooseLootItemDistribution
{
[JsonPropertyName("composedKey")]
public ComposedKey? ComposedKey { get; set; }
@@ -111,8 +111,8 @@ public class LooseLootItemDistribution
public double? RelativeProbability { get; set; }
}
public class ComposedKey
public record ComposedKey
{
[JsonPropertyName("key")]
public string? Key { get; set; }
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Common;
public class MetricsTableData
public record MetricsTableData
{
[JsonPropertyName("Keys")]
public List<int>? Keys { get; set; }
+3 -3
View File
@@ -4,20 +4,20 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common;
public class PmcData : BotBase
public record PmcData : BotBase
{
[JsonPropertyName("Prestige")]
[JsonConverter(typeof(ArrayToObjectFactoryConverter))]
public Dictionary<string, long>? Prestige { get; set; }
}
public class PostRaidPmcData : BotBase
public record PostRaidPmcData : BotBase
{
[JsonPropertyName("Stats")]
public PostRaidStats? Stats { get; set; }
}
public class PostRaidStats
public record PostRaidStats
{
[JsonPropertyName("Eft")]
public EftStats? Eft { get; set; }
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Request;
public class BaseInteractionRequestData
public record BaseInteractionRequestData
{
[JsonPropertyName("Action")]
public virtual string? Action { get; set; }
@@ -14,11 +14,11 @@ public class BaseInteractionRequestData
public OwnerInfo? ToOwner { get; set; }
}
public class OwnerInfo
public record OwnerInfo
{
[JsonPropertyName("id")]
public string? Id { get; set; }
[JsonPropertyName("type")]
public string? Type { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Common.Request;
public class UIDRequestData : IRequestData
public record UIDRequestData : IRequestData
{
[JsonPropertyName("uid")]
public string? Uid { get; set; }
+2 -2
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Common.Tables;
public class Achievement
public record Achievement
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -50,7 +50,7 @@ public class Achievement
public int? Index { get; set; }
}
public class AchievementQuestConditionTypes
public record AchievementQuestConditionTypes
{
[JsonPropertyName("started")]
public List<QuestCondition>? Started { get; set; }
+54 -54
View File
@@ -7,7 +7,7 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
public class BotBase
public record BotBase
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -103,7 +103,7 @@ public class BotBase
public bool? IsPmc { get; set; }
}
public class MoneyTransferLimits
public record MoneyTransferLimits
{
// Resets every 24 hours in live
/** TODO: Implement */
@@ -120,7 +120,7 @@ public class MoneyTransferLimits
public double? ResetInterval { get; set; }
}
public class TaskConditionCounter
public record TaskConditionCounter
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -136,13 +136,13 @@ public class TaskConditionCounter
public string? SourceId { get; set; }
}
public class UnlockedInfo
public record UnlockedInfo
{
[JsonPropertyName("unlockedProductionRecipe")]
public List<string>? UnlockedProductionRecipe { get; set; }
}
public class Info
public record Info
{
public string? EntryPoint { get; set; }
public string? Nickname { get; set; }
@@ -188,7 +188,7 @@ public class Info
public int? PrestigeLevel { get; set; }
}
public class BotInfoSettings
public record BotInfoSettings
{
public string? Role { get; set; }
public string? BotDifficulty { get; set; }
@@ -198,7 +198,7 @@ public class BotInfoSettings
public bool? UseSimpleAnimator { get; set; }
}
public class Ban
public record Ban
{
[JsonPropertyName("banType")]
public BanType? BanType { get; set; }
@@ -218,7 +218,7 @@ public enum BanType
CHANGE_NICKNAME = 6
}
public class Customization
public record Customization
{
public string? Head { get; set; }
public string? Body { get; set; }
@@ -227,7 +227,7 @@ public class Customization
public string? DogTag { get; set; }
}
public class BotBaseHealth
public record BotBaseHealth
{
public CurrentMax? Hydration { get; set; }
public CurrentMax? Energy { get; set; }
@@ -237,26 +237,26 @@ public class BotBaseHealth
public bool? Immortal { get; set; }
}
public class BodyPartHealth
public record BodyPartHealth
{
public CurrentMax? Health { get; set; }
public Dictionary<string, BodyPartEffectProperties>? Effects { get; set; }
}
public class BodyPartEffectProperties
public record BodyPartEffectProperties
{
// TODO: this was any, what actual type is it?
public object? ExtraData { get; set; }
public double? Time { get; set; }
}
public class CurrentMax
public record CurrentMax
{
public double? Current { get; set; }
public double? Maximum { get; set; }
}
public class BotBaseInventory
public record BotBaseInventory
{
[JsonPropertyName("items")]
public List<Item>? Items { get; set; }
@@ -290,7 +290,7 @@ public class BotBaseInventory
public string? HideoutCustomizationStashId { get; set; }
}
public class BaseJsonSkills
public record BaseJsonSkills
{
public List<Common>? Common { get; set; }
@@ -299,7 +299,7 @@ public class BaseJsonSkills
public double? Points { get; set; }
}
public class Skills
public record Skills
{
public List<BaseSkill>? Common { get; set; }
@@ -308,7 +308,7 @@ public class Skills
public double? Points { get; set; }
}
public class BaseSkill
public record BaseSkill
{
public int? PointsEarnedDuringSession { get; set; }
public long? LastAccess { get; set; }
@@ -322,21 +322,21 @@ public class BaseSkill
public int? Min { get; set; }
}
public class Common : BaseSkill
public record Common : BaseSkill
{
}
public class Mastering : BaseSkill
public record Mastering : BaseSkill
{
}
public class Stats
public record Stats
{
public EftStats? Eft { get; set; }
}
public class EftStats
public record EftStats
{
public List<string>? CarriedQuestItems { get; set; }
public List<Victim>? Victims { get; set; }
@@ -359,21 +359,21 @@ public class EftStats
public float? SptLastRaidFenceRepChange { get; set; }
}
public class DroppedItem
public record DroppedItem
{
public string? QuestId { get; set; }
public string? ItemId { get; set; }
public string? ZoneId { get; set; }
}
public class FoundInRaidItem
public record FoundInRaidItem
{
public string? QuestId { get; set; }
public string? ItemId { get; set; }
}
// TODO: Same as Aggressor?
public class Victim
public record Victim
{
public string? AccountId { get; set; }
public string? ProfileId { get; set; }
@@ -388,23 +388,23 @@ public class Victim
public string? Location { get; set; }
}
public class SessionCounters
public record SessionCounters
{
public List<CounterKeyValue>? Items { get; set; }
}
public class OverallCounters
public record OverallCounters
{
public List<CounterKeyValue>? Items { get; set; }
}
public class CounterKeyValue
public record CounterKeyValue
{
public List<string>? Key { get; set; }
public double? Value { get; set; }
}
public class Aggressor
public record Aggressor
{
public string? AccountId { get; set; }
public string? ProfileId { get; set; }
@@ -417,7 +417,7 @@ public class Aggressor
public string? Category { get; set; }
}
public class DamageHistory
public record DamageHistory
{
public string? LethalDamagePart { get; set; }
public LethalDamage? LethalDamage { get; set; }
@@ -426,8 +426,8 @@ public class DamageHistory
public BodyPartsDamageHistory? BodyParts { get; set; }
}
// TODO: this class seems exactly the same as DamageStats, why have it?
public class LethalDamage
// TODO: this record seems exactly the same as DamageStats, why have it?
public record LethalDamage
{
public double? Amount { get; set; }
public string? Type { get; set; }
@@ -437,7 +437,7 @@ public class LethalDamage
public double? ImpactsCount { get; set; }
}
public class BodyPartsDamageHistory
public record BodyPartsDamageHistory
{
public List<DamageStats>? Head { get; set; }
public List<DamageStats>? Chest { get; set; }
@@ -449,7 +449,7 @@ public class BodyPartsDamageHistory
public List<DamageStats>? Common { get; set; }
}
public class DamageStats
public record DamageStats
{
public double? Amount { get; set; }
public string? Type { get; set; }
@@ -459,7 +459,7 @@ public class DamageStats
public double? ImpactsCount { get; set; }
}
public class DeathCause
public record DeathCause
{
public string? DamageType { get; set; }
public string? Side { get; set; }
@@ -467,7 +467,7 @@ public class DeathCause
public string? WeaponId { get; set; }
}
public class LastPlayerState
public record LastPlayerState
{
public LastPlayerStateInfo? Info { get; set; }
public Dictionary<string, string>? Customization { get; set; }
@@ -476,7 +476,7 @@ public class LastPlayerState
public object? Equipment { get; set; }
}
public class LastPlayerStateInfo
public record LastPlayerStateInfo
{
public string? Nickname { get; set; }
public string? Side { get; set; }
@@ -484,7 +484,7 @@ public class LastPlayerStateInfo
public MemberCategory? MemberCategory { get; set; }
}
public class BackendCounter
public record BackendCounter
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -496,7 +496,7 @@ public class BackendCounter
public double? Value { get; set; }
}
public class InsuredItem
public record InsuredItem
{
/** Trader Id item was insured by */
[JsonPropertyName("tid")]
@@ -506,7 +506,7 @@ public class InsuredItem
public string? ItemId { get; set; }
}
public class Hideout
public record Hideout
{
public Dictionary<string, Production>? Production { get; set; }
public List<BotHideoutArea>? Areas { get; set; }
@@ -522,7 +522,7 @@ public class Hideout
public Dictionary<string, string>? Customization { get; set; }
}
public class HideoutCounters
public record HideoutCounters
{
[JsonPropertyName("fuelCounter")]
public double? FuelCounter { get; set; }
@@ -537,7 +537,7 @@ public class HideoutCounters
public double? CraftingTimeCounter { get; set; }
}
public class HideoutImprovement
public record HideoutImprovement
{
[JsonPropertyName("completed")]
public bool? Completed { get; set; }
@@ -546,7 +546,7 @@ public class HideoutImprovement
public long? ImproveCompleteTimestamp { get; set; }
}
public class Productive
public record Productive
{
public List<Product>? Products { get; set; }
@@ -595,19 +595,19 @@ public class Productive
public bool? SptIsCultistCircle { get; set; }
}
public class Production : Productive
public record Production : Productive
{
public string? RecipeId { get; set; }
public int? SkipTime { get; set; }
public int? ProductionTime { get; set; }
}
public class ScavCase : Productive
public record ScavCase : Productive
{
public string? RecipeId { get; set; }
}
public class Product
public record Product
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -619,7 +619,7 @@ public class Product
public Upd? Upd { get; set; }
}
public class BotHideoutArea
public record BotHideoutArea
{
[JsonPropertyName("type")]
public HideoutAreas? Type { get; set; }
@@ -647,7 +647,7 @@ public class BotHideoutArea
public string? LastRecipe { get; set; }
}
public class HideoutSlot
public record HideoutSlot
{
/// <summary>
/// SPT specific value to keep track of what index this slot is (0,1,2,3 etc)
@@ -659,7 +659,7 @@ public class HideoutSlot
public List<HideoutItem>? Items { get; set; }
}
public class HideoutItem
public record HideoutItem
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -671,13 +671,13 @@ public class HideoutItem
public Upd? Upd { get; set; }
}
public class LastCompleted
public record LastCompleted
{
[JsonPropertyName("$oid")]
public string? OId { get; set; }
}
public class Notes
public record Notes
{
[JsonPropertyName("Notes")]
public List<Note>? DataNotes { get; set; }
@@ -692,7 +692,7 @@ public enum SurvivorClass
SURVIVOR = 4
}
public class Quests
public record Quests
{
[JsonPropertyName("qid")]
public string? QId { get; set; }
@@ -714,7 +714,7 @@ public class Quests
public long? AvailableAfter { get; set; }
}
public class TraderInfo
public record TraderInfo
{
[JsonPropertyName("loyaltyLevel")]
public int? LoyaltyLevel { get; set; }
@@ -735,7 +735,7 @@ public class TraderInfo
public bool? Disabled { get; set; }
}
public class RagfairInfo
public record RagfairInfo
{
[JsonPropertyName("rating")]
public double? Rating { get; set; }
@@ -747,7 +747,7 @@ public class RagfairInfo
public List<RagfairOffer>? Offers { get; set; }
}
public class Bonus
public record Bonus
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -781,7 +781,7 @@ public class Bonus
public BonusSkillType? SkillType { get; set; }
}
public class Note
public record Note
{
public double? Time { get; set; }
public string? Text { get; set; }
+2 -2
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Common.Tables;
public class BotCore
public record BotCore
{
[JsonPropertyName("SAVAGE_KILL_DIST")]
public double? SavageKillDistance { get; set; }
@@ -396,4 +396,4 @@ public class BotCore
[JsonPropertyName("AXE_MAN_KILLS_END")]
public double? AxeManKillsEnd { get; set; }
}
}
+17 -17
View File
@@ -5,7 +5,7 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
public class BotType
public record BotType
{
[JsonPropertyName("appearance")]
public Appearance? BotAppearance { get; set; }
@@ -38,7 +38,7 @@ public class BotType
public BotDbSkills? BotSkills { get; set; }
}
public class Appearance
public record Appearance
{
[JsonPropertyName("body")]
public Dictionary<string, double>? Body { get; set; }
@@ -59,7 +59,7 @@ public class Appearance
public Dictionary<string, double>? Voice { get; set; }
}
public class Chances
public record Chances
{
[JsonPropertyName("equipment")]
public Dictionary<string, double>? EquipmentChances { get; set; }
@@ -74,12 +74,12 @@ public class Chances
public Dictionary<string, double>? Mods { get; set; }
}
/* class removed in favor of Dictionary<string, double>
/* record removed in favor of Dictionary<string, double>
used to be used in:
Chances.WeaponModsChances
Chances.EquipmentModsChances
GenerateWeaponRequest.ModSpawnChances
public class ModsChances
public record ModsChances
{
[JsonPropertyName("mod_charge")]
public double? ModCharge { get; set; }
@@ -239,7 +239,7 @@ public double? ModPistol_Grip { get; set; }
}
*/
public class Difficulties
public record Difficulties
{
[JsonPropertyName("easy")]
public DifficultyCategories? Easy { get; set; }
@@ -254,7 +254,7 @@ public class Difficulties
public DifficultyCategories? Impossible { get; set; }
}
public class DifficultyCategories
public record DifficultyCategories
{
public Dictionary<string, object>? Aiming { get; set; } // TODO: string | number | boolean
public Dictionary<string, object>? Boss { get; set; } // TODO: string | number | boolean
@@ -272,7 +272,7 @@ public class DifficultyCategories
public Dictionary<string, object>? Shoot { get; set; } // TODO: string | number | boolean
}
public class Experience
public record Experience
{
/** key = bot difficulty */
[JsonPropertyName("aggressorBonus")]
@@ -293,13 +293,13 @@ public class Experience
public bool? UseSimpleAnimator { get; set; }
}
public class Generation
public record Generation
{
[JsonPropertyName("items")]
public GenerationWeightingItems? Items { get; set; }
}
public class GenerationData
public record GenerationData
{
/** key: number of items, value: weighting */
[JsonPropertyName("weights")]
@@ -311,7 +311,7 @@ public class GenerationData
public Dictionary<string, double>? Whitelist { get; set; }
}
public class GenerationWeightingItems
public record GenerationWeightingItems
{
[JsonPropertyName("grenades")]
public GenerationData Grenades { get; set; }
@@ -353,7 +353,7 @@ public class GenerationWeightingItems
public GenerationData LooseLoot { get; set; }
}
public class BotTypeHealth
public record BotTypeHealth
{
public List<BodyPart>? BodyParts { get; set; }
public MinMax? Energy { get; set; }
@@ -361,7 +361,7 @@ public class BotTypeHealth
public MinMax? Temperature { get; set; }
}
public class BodyPart
public record BodyPart
{
public MinMax? Chest { get; set; }
public MinMax? Head { get; set; }
@@ -372,7 +372,7 @@ public class BodyPart
public MinMax? Stomach { get; set; }
}
public class BotTypeInventory
public record BotTypeInventory
{
[JsonPropertyName("equipment")]
public Dictionary<EquipmentSlots, Dictionary<string, double>>? Equipment { get; set; }
@@ -386,7 +386,7 @@ public class BotTypeInventory
public GlobalMods? Mods { get; set; }
}
public class Equipment
public record Equipment
{
public Dictionary<string, double>? ArmBand { get; set; }
public Dictionary<string, double>? ArmorVest { get; set; }
@@ -404,7 +404,7 @@ public class Equipment
public Dictionary<string, double>? TacticalVest { get; set; }
}
public class ItemPools
public record ItemPools
{
public Dictionary<string, double>? Backpack { get; set; }
public Dictionary<string, double>? Pockets { get; set; }
@@ -413,7 +413,7 @@ public class ItemPools
public Dictionary<string, double>? TacticalVest { get; set; }
}
public class BotDbSkills
public record BotDbSkills
{
public Dictionary<string, MinMax>? Common { get; set; }
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Tables;
public class CustomisationStorage
public record CustomisationStorage
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -14,7 +14,7 @@ public class CustomisationStorage
public string? Type { get; set; }
}
public class CustomisationType
public record CustomisationType
{
public const string SUITE = "suite";
public const string DOG_TAG = "dogTag";
@@ -31,7 +31,7 @@ public class CustomisationType
public const string MANNEQUIN_POSE = "mannequinPose";
}
public class CustomisationSource
public record CustomisationSource
{
public const string QUEST = "quest";
public const string PRESTIGE = "prestige";
@@ -2,7 +2,7 @@
using System.Text.Json.Serialization;
public class CustomizationItem
public record CustomizationItem
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -21,4 +21,4 @@ public class CustomizationItem
[JsonPropertyName("_proto")]
public string? Proto { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Common.Tables;
public class HandbookBase
public record HandbookBase
{
[JsonPropertyName("Categories")]
public List<HandbookCategory>? Categories { get; set; }
@@ -11,7 +11,7 @@ public class HandbookBase
public List<HandbookItem>? Items { get; set; }
}
public class HandbookCategory
public record HandbookCategory
{
[JsonPropertyName("Id")]
public string? Id { get; set; }
@@ -31,7 +31,7 @@ public class HandbookCategory
public string? Order { get; set; }
}
public class HandbookItem
public record HandbookItem
{
[JsonPropertyName("Id")]
public string? Id { get; set; }
+23 -23
View File
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Tables;
public class Item
public record Item
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -26,7 +26,7 @@ public class Item
public Upd? Upd { get; set; }
}
public class ItemLocation
public record ItemLocation
{
public double? X { get; set; }
public double? Y { get; set; }
@@ -37,7 +37,7 @@ public class ItemLocation
public object? Rotation { get; set; } // TODO: Can be string or boolean
}
public class Upd
public record Upd
{
public UpdBuff? Buff { get; set; }
public int? OriginalStackObjectsCount { get; set; }
@@ -79,7 +79,7 @@ public enum PinLockState
Pinned
}
public class UpdBuff
public record UpdBuff
{
[JsonPropertyName("Rarity")]
public string? Rarity { get; set; }
@@ -94,19 +94,19 @@ public class UpdBuff
public int? ThresholdDurability { get; set; }
}
public class UpdTogglable
public record UpdTogglable
{
[JsonPropertyName("On")]
public bool? On { get; set; }
}
public class UpdMap
public record UpdMap
{
[JsonPropertyName("Markers")]
public List<MapMarker>? Markers { get; set; }
}
public class MapMarker
public record MapMarker
{
[JsonPropertyName("Type")]
public string? Type { get; set; }
@@ -121,7 +121,7 @@ public class MapMarker
public string? Note { get; set; }
}
public class UpdTag
public record UpdTag
{
[JsonPropertyName("Color")]
public int? Color { get; set; }
@@ -130,13 +130,13 @@ public class UpdTag
public string? Name { get; set; }
}
public class UpdFaceShield
public record UpdFaceShield
{
[JsonPropertyName("Hits")]
public int? Hits { get; set; }
}
public class UpdRepairable
public record UpdRepairable
{
[JsonPropertyName("Durability")]
public double? Durability { get; set; }
@@ -145,19 +145,19 @@ public class UpdRepairable
public double? MaxDurability { get; set; }
}
public class UpdRecodableComponent
public record UpdRecodableComponent
{
[JsonPropertyName("IsEncoded")]
public bool? IsEncoded { get; set; }
}
public class UpdMedKit
public record UpdMedKit
{
[JsonPropertyName("HpResource")]
public double? HpResource { get; set; }
}
public class UpdSight
public record UpdSight
{
[JsonPropertyName("ScopesCurrentCalibPointIndexes")]
public List<int>? ScopesCurrentCalibPointIndexes { get; set; }
@@ -169,31 +169,31 @@ public class UpdSight
public int? SelectedScope { get; set; }
}
public class UpdFoldable
public record UpdFoldable
{
[JsonPropertyName("Folded")]
public bool? Folded { get; set; }
}
public class UpdFireMode
public record UpdFireMode
{
[JsonPropertyName("FireMode")]
public string? FireMode { get; set; }
}
public class UpdFoodDrink
public record UpdFoodDrink
{
[JsonPropertyName("HpPercent")]
public double? HpPercent { get; set; }
}
public class UpdKey
public record UpdKey
{
[JsonPropertyName("NumberOfUsages")]
public double? NumberOfUsages { get; set; }
}
public class UpdResource
public record UpdResource
{
[JsonPropertyName("Value")]
public double? Value { get; set; }
@@ -202,7 +202,7 @@ public class UpdResource
public double? UnitsConsumed { get; set; }
}
public class UpdLight
public record UpdLight
{
[JsonPropertyName("IsActive")]
public bool? IsActive { get; set; }
@@ -211,7 +211,7 @@ public class UpdLight
public int? SelectedMode { get; set; }
}
public class UpdDogtag
public record UpdDogtag
{
[JsonPropertyName("AccountId")]
public string? AccountId { get; set; }
@@ -247,19 +247,19 @@ public class UpdDogtag
public string? WeaponName { get; set; }
}
public class UpdSideEffect
public record UpdSideEffect
{
[JsonPropertyName("Value")]
public double? Value { get; set; }
}
public class UpdRepairKit
public record UpdRepairKit
{
[JsonPropertyName("Resource")]
public double? Resource { get; set; }
}
public class UpdCultistAmulet
public record UpdCultistAmulet
{
[JsonPropertyName("NumberOfUsages")]
public double? NumberOfUsages { get; set; }
@@ -3,7 +3,7 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
public class LocationServices
public record LocationServices
{
[JsonPropertyName("TraderServerSettings")]
public TraderServerSettings? TraderServerSettings { get; set; }
@@ -12,13 +12,13 @@ public class LocationServices
public BtrServerSettings? BtrServerSettings { get; set; }
}
public class TraderServerSettings
public record TraderServerSettings
{
[JsonPropertyName("TraderServices")]
public TraderServices? TraderServices { get; set; }
}
public class TraderServices
public record TraderServices
{
[JsonPropertyName("ExUsecLoyalty")]
public TraderService? ExUsecLoyalty { get; set; }
@@ -42,7 +42,7 @@ public class TraderServices
public TraderService? TransitItemsDelivery { get; set; }
}
public class TraderService
public record TraderService
{
[JsonPropertyName("TraderId")]
public string? TraderId { get; set; }
@@ -61,7 +61,7 @@ public class TraderService
public List<string>? UniqueItems { get; set; }
}
public class ServiceRequirements
public record ServiceRequirements
{
[JsonPropertyName("CompletedQuests")]
public List<CompletedQuest>? CompletedQuests { get; set; }
@@ -71,25 +71,25 @@ public class ServiceRequirements
public Dictionary<string, StandingRequirement>? Standings { get; set; }
}
public class CompletedQuest
public record CompletedQuest
{
[JsonPropertyName("QuestId")]
public string? QuestId { get; set; }
}
public class StandingRequirement
public record StandingRequirement
{
[JsonPropertyName("Value")]
public double? Value { get; set; }
}
public class ServiceItemCostDetails
public record ServiceItemCostDetails
{
[JsonPropertyName("Count")]
public int? Count { get; set; }
}
public class BtrServerSettings
public record BtrServerSettings
{
[JsonPropertyName("ChanceSpawn")]
public double? ChanceSpawn { get; set; }
@@ -137,7 +137,7 @@ public class BtrServerSettings
public Dictionary<string, ServerMapBtrsettings>? ServerMapBTRSettings { get; set; }
}
public class ServerMapBtrsettings
public record ServerMapBtrsettings
{
[JsonPropertyName("MapID")]
public string? MapID { get; set; }
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Tables;
public class LocationsBase
public record LocationsBase
{
[JsonPropertyName("locations")]
public Locations? Locations { get; set; }
@@ -11,12 +11,12 @@ public class LocationsBase
public List<Path>? Paths { get; set; }
}
public class Locations
public record Locations
{
// Add properties as necessary
}
public class Path
public record Path
{
[JsonPropertyName("Source")]
public string? Source { get; set; }
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Tables;
public class LocationsGenerateAllResponse
public record LocationsGenerateAllResponse
{
[JsonPropertyName("locations")]
public Dictionary<string, LocationBase> Locations { get; set; }
+3 -3
View File
@@ -2,13 +2,13 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Tables;
public class Match
public record Match
{
[JsonPropertyName("metrics")]
public Metrics? Metrics { get; set; }
}
public class Metrics
public record Metrics
{
[JsonPropertyName("Keys")]
public List<int>? Keys { get; set; }
@@ -27,4 +27,4 @@ public class Metrics
[JsonPropertyName("PauseReasons")]
public List<int>? PauseReasons { get; set; }
}
}
+7 -7
View File
@@ -2,13 +2,13 @@
using System.Text.Json.Serialization;
public class Prestige
public record Prestige
{
[JsonPropertyName("elements")]
public List<PrestigeElement>? Elements { get; set; }
}
public class PrestigeElement
public record PrestigeElement
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -29,7 +29,7 @@ public class PrestigeElement
public string? BigImage { get; set; }
}
public class TransferConfigs
public record TransferConfigs
{
[JsonPropertyName("stashConfig")]
public StashPrestigeConfig? StashConfig { get; set; }
@@ -41,7 +41,7 @@ public class TransferConfigs
public PrestigeMasteringConfig? MasteringConfig { get; set; }
}
public class StashPrestigeConfig
public record StashPrestigeConfig
{
[JsonPropertyName("xCellCount")]
public int? XCellCount { get; set; }
@@ -53,7 +53,7 @@ public class StashPrestigeConfig
public StashPrestigeFilters? Filters { get; set; }
}
public class StashPrestigeFilters
public record StashPrestigeFilters
{
[JsonPropertyName("includedItems")]
public List<string>? IncludedItems { get; set; }
@@ -62,13 +62,13 @@ public class StashPrestigeFilters
public List<string>? ExcludedItems { get; set; }
}
public class PrestigeSkillConfig
public record PrestigeSkillConfig
{
[JsonPropertyName("transferMultiplier")]
public double? TransferMultiplier { get; set; }
}
public class PrestigeMasteringConfig
public record PrestigeMasteringConfig
{
[JsonPropertyName("transferMultiplier")]
public double? TransferMultiplier { get; set; }
@@ -4,7 +4,7 @@ using Core.Utils.Extensions;
namespace Core.Models.Eft.Common.Tables;
public class ProfileTemplates
public record ProfileTemplates
{
[JsonPropertyName("Standard")]
public ProfileSides? Standard { get; set; }
@@ -42,7 +42,7 @@ public class ProfileTemplates
}
}
public class ProfileSides
public record ProfileSides
{
[JsonPropertyName("descriptionLocaleKey")]
public string? DescriptionLocaleKey { get; set; }
@@ -62,7 +62,7 @@ public class ProfileSides
}
}
public class TemplateSide
public record TemplateSide
{
[JsonPropertyName("character")]
public PmcData? Character { get; set; }
@@ -86,7 +86,7 @@ public class TemplateSide
public object? WeaponBuilds { get; set; }
}
public class ProfileTraderTemplate
public record ProfileTraderTemplate
{
[JsonPropertyName("initialLoyaltyLevel")]
public Dictionary<string, int>? InitialLoyaltyLevel { get; set; }
+12 -12
View File
@@ -4,7 +4,7 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
public class Quest
public record Quest
{
/// <summary>
/// SPT addition - human readable quest name
@@ -133,7 +133,7 @@ public class Quest
/// <summary>
/// Same as BotBase.Quests
/// </summary>
public class QuestStatus
public record QuestStatus
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -160,7 +160,7 @@ public class QuestStatus
public double? AvailableAfter { get; set; }
}
public class QuestConditionTypes
public record QuestConditionTypes
{
[JsonPropertyName("Started")]
public List<QuestCondition>? Started { get; set; }
@@ -178,7 +178,7 @@ public class QuestConditionTypes
public List<QuestCondition>? Fail { get; set; }
}
public class QuestCondition
public record QuestCondition
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -314,7 +314,7 @@ public class QuestCondition
}
public class QuestConditionCounter
public record QuestConditionCounter
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -323,7 +323,7 @@ public class QuestConditionCounter
public List<QuestConditionCounterCondition>? Conditions { get; set; }
}
public class QuestConditionCounterCondition
public record QuestConditionCounterCondition
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -414,7 +414,7 @@ public class QuestConditionCounterCondition
}
public class EnemyHealthEffect
public record EnemyHealthEffect
{
[JsonPropertyName("bodyParts")]
public List<string>? BodyParts { get; set; }
@@ -423,7 +423,7 @@ public class EnemyHealthEffect
public List<string>? Effects { get; set; }
}
public class ValueCompare
public record ValueCompare
{
[JsonPropertyName("compareMethod")]
public string? CompareMethod { get; set; }
@@ -432,7 +432,7 @@ public class ValueCompare
public double? Value { get; set; }
}
public class CounterConditionDistance
public record CounterConditionDistance
{
[JsonPropertyName("value")]
public int? Value { get; set; }
@@ -441,7 +441,7 @@ public class CounterConditionDistance
public string? CompareMethod { get; set; }
}
public class DaytimeCounter
public record DaytimeCounter
{
[JsonPropertyName("from")]
public int? From { get; set; }
@@ -450,7 +450,7 @@ public class DaytimeCounter
public int? To { get; set; }
}
public class VisibilityCondition
public record VisibilityCondition
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -471,7 +471,7 @@ public class VisibilityCondition
public string? ConditionType { get; set; }
}
public class QuestRewards
public record QuestRewards
{
[JsonPropertyName("AvailableForStart")]
public List<Reward>? AvailableForStart { get; set; }
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Common.Tables;
public class RepeatableQuest : Quest
public record RepeatableQuest : Quest
{
[JsonPropertyName("changeCost")]
public List<ChangeCost?>? ChangeCost { get; set; }
@@ -32,7 +32,7 @@ public class RepeatableQuest : Quest
public RepeatableQuestStatus? QuestStatus { get; set; }
}
public class RepeatableQuestDatabase
public record RepeatableQuestDatabase
{
[JsonPropertyName("templates")]
public RepeatableTemplates? Templates { get; set; }
@@ -47,7 +47,7 @@ public class RepeatableQuestDatabase
public List<SampleQuests?>? Samples { get; set; }
}
public class RepeatableQuestStatus
public record RepeatableQuestStatus
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -68,7 +68,7 @@ public class RepeatableQuestStatus
public object? StatusTimers { get; set; } // Use object for any type
}
public class RepeatableTemplates
public record RepeatableTemplates
{
[JsonPropertyName("Elimination")]
public Quest? Elimination { get; set; }
@@ -83,7 +83,7 @@ public class RepeatableTemplates
public Quest? Pickup { get; set; }
}
public class PmcDataRepeatableQuest
public record PmcDataRepeatableQuest
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -113,7 +113,7 @@ public class PmcDataRepeatableQuest
public int? FreeChangesAvailable { get; set; }
}
public class ChangeRequirement
public record ChangeRequirement
{
[JsonPropertyName("changeCost")]
public List<ChangeCost?>? ChangeCost { get; set; }
@@ -122,7 +122,7 @@ public class ChangeRequirement
public double? ChangeStandingCost { get; set; }
}
public class ChangeCost
public record ChangeCost
{
[JsonPropertyName("templateId")]
public string? TemplateId { get; set; }
@@ -133,19 +133,19 @@ public class ChangeCost
// Config Options
public class RewardOptions
public record RewardOptions
{
[JsonPropertyName("itemsBlacklist")]
public List<string>? ItemsBlacklist { get; set; }
}
public class Options
public record Options
{
[JsonPropertyName("Completion")]
public CompletionFilter? Completion { get; set; }
}
public class CompletionFilter
public record CompletionFilter
{
[JsonPropertyName("itemsBlacklist")]
public List<ItemsBlacklist>? ItemsBlacklist { get; set; }
@@ -154,7 +154,7 @@ public class CompletionFilter
public List<ItemsWhitelist>? ItemsWhitelist { get; set; }
}
public class ItemsBlacklist
public record ItemsBlacklist
{
[JsonPropertyName("minPlayerLevel")]
public int? MinPlayerLevel { get; set; }
@@ -163,7 +163,7 @@ public class ItemsBlacklist
public List<string>? ItemIds { get; set; }
}
public class ItemsWhitelist
public record ItemsWhitelist
{
[JsonPropertyName("minPlayerLevel")]
public int? MinPlayerLevel { get; set; }
@@ -172,7 +172,7 @@ public class ItemsWhitelist
public List<string>? ItemIds { get; set; }
}
public class SampleQuests
public record SampleQuests
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
+1 -1
View File
@@ -3,7 +3,7 @@ using Core.Models.Enums;
namespace Core.Models.Eft.Common.Tables;
public class Reward
public record Reward
{
[JsonPropertyName("value")]
public object? Value { get; set; } // TODO: Can be either string or number
+25 -25
View File
@@ -3,7 +3,7 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
public class TemplateItem
public record TemplateItem
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -24,7 +24,7 @@ public class TemplateItem
public string? Prototype { get; set; }
}
public class Props
public record Props
{
[JsonPropertyName("AllowSpawnOnLocations")]
public List<string>? AllowSpawnOnLocations { get; set; }
@@ -1359,7 +1359,7 @@ public class Props
public Dictionary<string, object> OtherProperties { get; set; }
}
public class WeaponRecoilSettings
public record WeaponRecoilSettings
{
[JsonPropertyName("Enable")]
public bool? Enable { get; set; }
@@ -1368,7 +1368,7 @@ public class WeaponRecoilSettings
public List<WeaponRecoilSettingValues>? Values { get; set; }
}
public class WeaponRecoilSettingValues
public record WeaponRecoilSettingValues
{
[JsonPropertyName("Enable")]
public bool? Enable { get; set; }
@@ -1380,7 +1380,7 @@ public class WeaponRecoilSettingValues
public string? Target { get; set; }
}
public class WeaponRecoilProcess
public record WeaponRecoilProcess
{
[JsonPropertyName("ComponentType")]
public string? ComponentType { get; set; }
@@ -1398,13 +1398,13 @@ public class WeaponRecoilProcess
public WeaponRecoilTransformationCurve? TransformationCurve { get; set; }
}
public class WeaponRecoilTransformationCurve
public record WeaponRecoilTransformationCurve
{
[JsonPropertyName("Keys")]
public List<WeaponRecoilTransformationCurveKey>? Keys { get; set; }
}
public class WeaponRecoilTransformationCurveKey
public record WeaponRecoilTransformationCurveKey
{
[JsonPropertyName("inTangent")]
public double? InTangent { get; set; }
@@ -1419,7 +1419,7 @@ public class WeaponRecoilTransformationCurveKey
public double? Value { get; set; }
}
public class HealthEffect
public record HealthEffect
{
[JsonPropertyName("type")]
public string? Type { get; set; }
@@ -1428,7 +1428,7 @@ public class HealthEffect
public double? Value { get; set; }
}
public class Prefab
public record Prefab
{
[JsonPropertyName("path")]
public string? Path { get; set; }
@@ -1437,7 +1437,7 @@ public class Prefab
public string? Rcid { get; set; }
}
public class Grid
public record Grid
{
[JsonPropertyName("_name")]
public string? Name { get; set; }
@@ -1455,7 +1455,7 @@ public class Grid
public string? Proto { get; set; }
}
public class GridProps
public record GridProps
{
[JsonPropertyName("filters")]
public List<GridFilter>? Filters { get; set; }
@@ -1479,7 +1479,7 @@ public class GridProps
public bool? IsSortingTable { get; set; }
}
public class GridFilter
public record GridFilter
{
[JsonPropertyName("Filter")]
public List<string>? Filter { get; set; }
@@ -1491,7 +1491,7 @@ public class GridFilter
public bool? Locked { get; set; }
}
public class Slot
public record Slot
{
[JsonPropertyName("_name")]
public string? Name { get; set; }
@@ -1518,7 +1518,7 @@ public class Slot
public string? Proto { get; set; }
}
public class SlotProps
public record SlotProps
{
[JsonPropertyName("filters")]
public List<SlotFilter>? Filters { get; set; }
@@ -1527,7 +1527,7 @@ public class SlotProps
public double? MaxStackCount { get; set; }
}
public class SlotFilter
public record SlotFilter
{
[JsonPropertyName("Shift")]
public double? Shift { get; set; }
@@ -1557,7 +1557,7 @@ public class SlotFilter
public bool? BluntDamageReduceFromSoftArmor { get; set; }
}
public class StackSlot
public record StackSlot
{
[JsonPropertyName("_name")]
public string? Name { get; set; }
@@ -1581,13 +1581,13 @@ public class StackSlot
public object? Upd { get; set; } // TODO: object here
}
public class StackSlotProps
public record StackSlotProps
{
[JsonPropertyName("filters")]
public List<SlotFilter>? Filters { get; set; }
}
public class RandomLootSettings
public record RandomLootSettings
{
[JsonPropertyName("allowToSpawnIdenticalItems")]
public bool? AllowToSpawnIdenticalItems { get; set; }
@@ -1614,7 +1614,7 @@ public class RandomLootSettings
public double? MinCount { get; set; }
}
public class RandomLootExcluded
public record RandomLootExcluded
{
[JsonPropertyName("categoryTemplates")]
public List<object>? CategoryTemplates { get; set; } // TODO: object here
@@ -1626,7 +1626,7 @@ public class RandomLootExcluded
public List<object>? Templates { get; set; } // TODO: object here
}
public class EffectsHealth
public record EffectsHealth
{
[JsonPropertyName("Energy")]
public EffectsHealthProps? Energy { get; set; }
@@ -1635,13 +1635,13 @@ public class EffectsHealth
public EffectsHealthProps? Hydration { get; set; }
}
public class EffectsHealthProps
public record EffectsHealthProps
{
[JsonPropertyName("value")]
public double? Value { get; set; }
}
public class EffectsDamage
public record EffectsDamage
{
[JsonPropertyName("Pain")]
public EffectDamageProps? Pain { get; set; }
@@ -1665,7 +1665,7 @@ public class EffectsDamage
public EffectDamageProps? DestroyedPart { get; set; }
}
public class EffectDamageProps
public record EffectDamageProps
{
[JsonPropertyName("delay")]
public double? Delay { get; set; }
@@ -1686,7 +1686,7 @@ public class EffectDamageProps
public double? HealthPenaltyMax { get; set; }
}
public class Color
public record Color
{
[JsonPropertyName("r")]
public double? R { get; set; }
@@ -1701,7 +1701,7 @@ public class Color
public double? A { get; set; }
}
public class ShotsGroupSettings
public record ShotsGroupSettings
{
[JsonPropertyName("EndShotIndex")]
public double? EndShotIndex { get; set; }
+11 -11
View File
@@ -5,7 +5,7 @@ using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
public class Trader
public record Trader
{
[JsonPropertyName("assort")]
public TraderAssort? Assort { get; set; }
@@ -26,7 +26,7 @@ public class Trader
public List<TraderServiceModel>? Services { get; set; }
}
public class TraderBase
public record TraderBase
{
[JsonPropertyName("refreshTraderRagfairOffers")]
public bool? RefreshTraderRagfairOffers { get; set; }
@@ -119,7 +119,7 @@ public class TraderBase
public bool? UnlockedByDefault { get; set; }
}
public class ItemBuyData
public record ItemBuyData
{
[JsonPropertyName("category")]
public List<string>? Category { get; set; }
@@ -128,7 +128,7 @@ public class ItemBuyData
public List<string>? IdList { get; set; }
}
public class TraderInsurance
public record TraderInsurance
{
[JsonPropertyName("availability")]
public bool? Availability { get; set; }
@@ -149,7 +149,7 @@ public class TraderInsurance
public double? MinReturnHour { get; set; }
}
public class TraderLoyaltyLevel
public record TraderLoyaltyLevel
{
[JsonPropertyName("buy_price_coef")]
public double? BuyPriceCoefficient { get; set; }
@@ -177,7 +177,7 @@ public class TraderLoyaltyLevel
public double? RepairPriceCoefficient { get; set; }
}
public class TraderRepair
public record TraderRepair
{
[JsonPropertyName("availability")]
public bool? Availability { get; set; }
@@ -203,7 +203,7 @@ public class TraderRepair
}
public class TraderAssort
public record TraderAssort
{
[JsonPropertyName("nextResupply")]
public double? NextResupply { get; set; }
@@ -218,7 +218,7 @@ public class TraderAssort
public Dictionary<string, int>? LoyalLevelItems { get; set; }
}
public class BarterScheme
public record BarterScheme
{
[JsonPropertyName("count")]
public double? Count { get; set; }
@@ -240,7 +240,7 @@ public class BarterScheme
public DogtagExchangeSide? Side { get; set; }
}
public class Suit
public record Suit
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -267,7 +267,7 @@ public class Suit
public SuitRequirements? Requirements { get; set; }
}
public class SuitRequirements
public record SuitRequirements
{
[JsonPropertyName("achievementRequirements")]
public List<string>? AchievementRequirements { get; set; }
@@ -294,7 +294,7 @@ public class SuitRequirements
public string? RequiredTid { get; set; }
}
public class ItemRequirement
public record ItemRequirement
{
[JsonPropertyName("count")]
public double? Count { get; set; }
+2 -2
View File
@@ -2,11 +2,11 @@
namespace Core.Models.Eft.Common;
public class XY
public record XY
{
[JsonPropertyName("x")]
public double? X { get; set; }
[JsonPropertyName("y")]
public double? Y { get; set; }
}
}
+2 -2
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Common;
public class XYZ
public record XYZ
{
[JsonPropertyName("x")]
public double? X { get; set; }
@@ -12,4 +12,4 @@ public class XYZ
[JsonPropertyName("z")]
public double? Z { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Customization;
public class BuyClothingRequestData
public record BuyClothingRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "CustomizationBuy";
@@ -14,7 +14,7 @@ public class BuyClothingRequestData
public List<PaymentItemForClothing>? Items { get; set; }
}
public class PaymentItemForClothing
public record PaymentItemForClothing
{
[JsonPropertyName("del")]
public bool? Del { get; set; }
@@ -24,4 +24,4 @@ public class PaymentItemForClothing
[JsonPropertyName("count")]
public int? Count { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Customization;
public class CustomizationSetRequest
public record CustomizationSetRequest
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "CustomizationSet";
@@ -11,7 +11,7 @@ public class CustomizationSetRequest
public List<CustomizationSetOption>? Customizations { get; set; }
}
public class CustomizationSetOption
public record CustomizationSetOption
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -21,4 +21,4 @@ public class CustomizationSetOption
[JsonPropertyName("source")]
public string? Source { get; set; }
}
}
@@ -1,5 +1,5 @@
namespace Core.Models.Eft.Customization;
public class WearClothingRequestData
public record WearClothingRequestData
{
}
}
@@ -3,19 +3,19 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class AcceptFriendRequestData : BaseFriendRequest
public record AcceptFriendRequestData : BaseFriendRequest
{
}
public class CancelFriendRequestData : BaseFriendRequest
public record CancelFriendRequestData : BaseFriendRequest
{
}
public class DeclineFriendRequestData : BaseFriendRequest
public record DeclineFriendRequestData : BaseFriendRequest
{
}
public class BaseFriendRequest : IRequestData
public record BaseFriendRequest : IRequestData
{
[JsonPropertyName("profileId")]
public string? ProfileId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class AddUserGroupMailRequest : IRequestData
public record AddUserGroupMailRequest : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class ChangeGroupMailOwnerRequest : IRequestData
public record ChangeGroupMailOwnerRequest : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
+3 -3
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Dialog;
public class ChatServer
public record ChatServer
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -33,11 +33,11 @@ public class ChatServer
public bool? IsDeveloper { get; set; }
}
public class Chat
public record Chat
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
[JsonPropertyName("Members")]
public int? Members { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class ClearMailMessageRequest : IRequestData
public record ClearMailMessageRequest : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class CreateGroupMailRequest : IRequestData
public record CreateGroupMailRequest : IRequestData
{
[JsonPropertyName("Name")]
public string? Name { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class DeleteFriendRequest : IRequestData
public record DeleteFriendRequest : IRequestData
{
[JsonPropertyName("friend_id")]
public string? FriendId { get; set; }
+1 -1
View File
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class FriendRequestData : IRequestData
public record FriendRequestData : IRequestData
{
[JsonPropertyName("status")]
public int? Status { get; set; }
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Dialog;
public class FriendRequestSendResponse
public record FriendRequestSendResponse
{
[JsonPropertyName("status")]
public int? Status { get; set; }
@@ -12,4 +12,4 @@ public class FriendRequestSendResponse
[JsonPropertyName("retryAfter")]
public int? RetryAfter { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class GetAllAttachmentsRequestData : IRequestData
public record GetAllAttachmentsRequestData : IRequestData
{
[JsonPropertyName("dialogId")]
public string DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Eft.Profile;
namespace Core.Models.Eft.Dialog;
public class GetAllAttachmentsResponse
public record GetAllAttachmentsResponse
{
[JsonPropertyName("messages")]
public List<Message>? Messages { get; set; }
@@ -13,4 +13,4 @@ public class GetAllAttachmentsResponse
[JsonPropertyName("hasMessagesWithRewards")]
public bool? HasMessagesWithRewards { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class GetChatServerListRequestData : IRequestData
public record GetChatServerListRequestData : IRequestData
{
[JsonPropertyName("VersionId")]
public string? VersionId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Eft.Profile;
namespace Core.Models.Eft.Dialog;
public class GetFriendListDataResponse
public record GetFriendListDataResponse
{
[JsonPropertyName("Friends")]
public List<UserDialogInfo>? Friends { get; set; }
@@ -13,4 +13,4 @@ public class GetFriendListDataResponse
[JsonPropertyName("InIgnoreList")]
public List<string>? InIgnoreList { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class GetMailDialogInfoRequestData : IRequestData
public record GetMailDialogInfoRequestData : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class GetMailDialogListRequestData : IRequestData
public record GetMailDialogListRequestData : IRequestData
{
[JsonPropertyName("limit")]
public int? Limit { get; set; }
@@ -4,7 +4,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class GetMailDialogViewRequestData : IRequestData
public record GetMailDialogViewRequestData : IRequestData
{
[JsonPropertyName("type")]
public MessageType? Type { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Eft.Profile;
namespace Core.Models.Eft.Dialog;
public class GetMailDialogViewResponseData
public record GetMailDialogViewResponseData
{
[JsonPropertyName("messages")]
public List<Message>? Messages { get; set; }
@@ -13,4 +13,4 @@ public class GetMailDialogViewResponseData
[JsonPropertyName("hasMessagesWithRewards")]
public bool? HasMessagesWithRewards { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class PinDialogRequestData : IRequestData
public record PinDialogRequestData : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class RemoveDialogRequestData : IRequestData
public record RemoveDialogRequestData : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class RemoveMailMessageRequest : IRequestData
public record RemoveMailMessageRequest : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class RemoveUserGroupMailRequest : IRequestData
public record RemoveUserGroupMailRequest : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
+1 -1
View File
@@ -4,7 +4,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class SendMessageRequest : IRequestData
public record SendMessageRequest : IRequestData
{
[JsonPropertyName("dialogId")]
public string? DialogId { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Dialog;
public class SetDialogReadRequestData : IRequestData
public record SetDialogReadRequestData : IRequestData
{
[JsonPropertyName("dialogId")]
public List<string>? Dialogs { get; set; }
+2 -2
View File
@@ -2,11 +2,11 @@
namespace Core.Models.Eft.Game;
public class CheckVersionResponse
public record CheckVersionResponse
{
[JsonPropertyName("isvalid")]
public bool? IsValid { get; set; }
[JsonPropertyName("latestVersion")]
public string? LatestVersion { get; set; }
}
}
+4 -4
View File
@@ -3,13 +3,13 @@ using Core.Models.Enums;
namespace Core.Models.Eft.Game;
public class CurrentGroupResponse
public record CurrentGroupResponse
{
[JsonPropertyName("squad")]
public List<CurrentGroupSquadMember>? Squad { get; set; }
}
public class CurrentGroupSquadMember
public record CurrentGroupSquadMember
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -27,7 +27,7 @@ public class CurrentGroupSquadMember
public bool? IsReady { get; set; }
}
public class CurrentGroupMemberInfo
public record CurrentGroupMemberInfo
{
[JsonPropertyName("Nickname")]
public string? Nickname { get; set; }
@@ -40,4 +40,4 @@ public class CurrentGroupMemberInfo
[JsonPropertyName("MemberCategory")]
public MemberCategory? MemberCategory { get; set; }
}
}
+3 -3
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Game;
public class GameConfigResponse
public record GameConfigResponse
{
[JsonPropertyName("aid")]
public double? Aid { get; set; }
@@ -48,7 +48,7 @@ public class GameConfigResponse
public PurchasedGames? PurchasedGames { get; set; }
}
public class PurchasedGames
public record PurchasedGames
{
[JsonPropertyName("eft")]
public bool? IsEftPurchased { get; set; }
@@ -57,7 +57,7 @@ public class PurchasedGames
public bool? IsArenaPurchased { get; set; }
}
public class Backend
public record Backend
{
[JsonPropertyName("Lobby")]
public string? Lobby { get; set; }
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Game;
public class GameEmptyCrcRequestData : IRequestData
public record GameEmptyCrcRequestData : IRequestData
{
[JsonPropertyName("crc")]
public int? Crc { get; set; }
@@ -2,11 +2,11 @@
namespace Core.Models.Eft.Game;
public class GameKeepAliveResponse
public record GameKeepAliveResponse
{
[JsonPropertyName("msg")]
public string? Message { get; set; }
[JsonPropertyName("utc_time")]
public double? UtcTime { get; set; }
}
}
@@ -2,8 +2,8 @@
namespace Core.Models.Eft.Game;
public class GameLogoutResponseData
public record GameLogoutResponseData
{
[JsonPropertyName("status")]
public string? Status { get; set; }
}
}
+1 -1
View File
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Game;
public class GameModeRequestData : IRequestData
public record GameModeRequestData : IRequestData
{
[JsonPropertyName("sessionMode")]
public string? SessionMode { get; set; }
+1 -1
View File
@@ -8,7 +8,7 @@ public enum SessionMode
PVE
}
public class GameModeResponse
public record GameModeResponse
{
[JsonPropertyName("gameMode")]
public string? GameMode { get; set; }
+1 -1
View File
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Game;
public class GameStartResponse
public record GameStartResponse
{
[JsonPropertyName("utc_time")]
public double UtcTime { get; set; }
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Game;
public class GetItemPricesResponse
public record GetItemPricesResponse
{
[JsonPropertyName("supplyNextTime")]
public double? SupplyNextTime { get; set; }
@@ -12,4 +12,4 @@ public class GetItemPricesResponse
[JsonPropertyName("currencyCourses")]
public Dictionary<string, double>? CurrencyCourses { get; set; }
}
}
+1 -1
View File
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Game;
public class GetRaidTimeRequest : IRequestData
public record GetRaidTimeRequest : IRequestData
{
[JsonPropertyName("Side")]
public string? Side { get; set; }
+3 -3
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Game;
public class GetRaidTimeResponse
public record GetRaidTimeResponse
{
[JsonPropertyName("RaidTimeMinutes")]
public int? RaidTimeMinutes { get; set; }
@@ -17,7 +17,7 @@ public class GetRaidTimeResponse
public List<ExtractChange>? ExitChanges { get; set; }
}
public class ExtractChange
public record ExtractChange
{
[JsonPropertyName("Name")]
public string? Name { get; set; }
@@ -30,4 +30,4 @@ public class ExtractChange
[JsonPropertyName("Chance")]
public int? Chance { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Game;
public class SendSurveyOpinionRequest : IRequestData
public record SendSurveyOpinionRequest : IRequestData
{
[JsonPropertyName("surveyId")]
public int? SurveyId { get; set; }
@@ -12,7 +12,7 @@ public class SendSurveyOpinionRequest : IRequestData
public List<SurveyOpinionAnswer>? Answers { get; set; }
}
public class SurveyOpinionAnswer
public record SurveyOpinionAnswer
{
[JsonPropertyName("questionId")]
public int? QuestionId { get; set; }
+2 -2
View File
@@ -2,11 +2,11 @@
namespace Core.Models.Eft.Game;
public class ServerDetails
public record ServerDetails
{
[JsonPropertyName("ip")]
public string? Ip { get; set; }
[JsonPropertyName("port")]
public int? Port { get; set; }
}
}
+7 -7
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Game;
public class SurveyResponseData
public record SurveyResponseData
{
[JsonPropertyName("locale")]
public Dictionary<string, Dictionary<string, string>>? Locale { get; set; }
@@ -11,7 +11,7 @@ public class SurveyResponseData
public Survey? Survey { get; set; }
}
public class Survey
public record Survey
{
[JsonPropertyName("id")]
public int? Id { get; set; }
@@ -32,7 +32,7 @@ public class Survey
public bool? IsNew { get; set; }
}
public class WelcomePageData
public record WelcomePageData
{
[JsonPropertyName("titleLocaleKey")]
public string? TitleLocaleKey { get; set; }
@@ -44,13 +44,13 @@ public class WelcomePageData
public string? DescriptionLocaleKey { get; set; }
}
public class FarewellPageData
public record FarewellPageData
{
[JsonPropertyName("textLocaleKey")]
public string? TextLocaleKey { get; set; }
}
public class SurveyQuestion
public record SurveyQuestion
{
[JsonPropertyName("id")]
public int? Id { get; set; }
@@ -74,7 +74,7 @@ public class SurveyQuestion
public List<SurveyAnswer>? Answers { get; set; }
}
public class SurveyAnswer
public record SurveyAnswer
{
[JsonPropertyName("id")]
public int? Id { get; set; }
@@ -87,4 +87,4 @@ public class SurveyAnswer
[JsonPropertyName("localeKey")]
public string? LocaleKey { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Utils;
namespace Core.Models.Eft.Game;
public class VersionValidateRequestData : IRequestData
public record VersionValidateRequestData : IRequestData
{
[JsonPropertyName("version")]
public Version? Version { get; set; }
@@ -12,7 +12,7 @@ public class VersionValidateRequestData : IRequestData
public bool? Develop { get; set; }
}
public class Version
public record Version
{
[JsonPropertyName("major")]
public string? Major { get; set; }
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Health;
public class HealthTreatmentRequestData
public record HealthTreatmentRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "RestoreHealth";
@@ -20,7 +20,7 @@ public class HealthTreatmentRequestData
public long? Timestamp { get; set; }
}
public class ItemCost
public record ItemCost
{
/** Id of stack to take money from */
[JsonPropertyName("id")]
@@ -31,7 +31,7 @@ public class ItemCost
public int? Count { get; set; }
}
public class Difference
public record Difference
{
[JsonPropertyName("BodyParts")]
public BodyParts? BodyParts { get; set; }
@@ -43,7 +43,7 @@ public class Difference
public int? Hydration { get; set; }
}
public class BodyParts
public record BodyParts
{
[JsonPropertyName("Head")]
public BodyPart? Head { get; set; }
@@ -65,4 +65,4 @@ public class BodyParts
[JsonPropertyName("RightLeg")]
public BodyPart? RightLeg { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request;
namespace Core.Models.Eft.Health;
public class OffraidEatRequestData : BaseInteractionRequestData
public record OffraidEatRequestData : BaseInteractionRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "Eat";
@@ -16,4 +16,4 @@ public class OffraidEatRequestData : BaseInteractionRequestData
[JsonPropertyName("time")]
public int? Time { get; set; }
}
}
@@ -2,7 +2,7 @@ using Core.Models.Eft.Common.Request;
namespace Core.Models.Eft.Health;
public class OffraidHealRequestData : BaseInteractionRequestData
public record OffraidHealRequestData : BaseInteractionRequestData
{
public override string? Action { get; set; } = "Heal";
public string? Item { get; set; }
@@ -21,4 +21,4 @@ public enum BodyPart
LeftLeg,
RightLeg,
Common
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Health;
public class SyncHealthRequestData
public record SyncHealthRequestData
{
[JsonPropertyName("Health")]
public List<BodyPartHealth>? Health { get; set; }
@@ -20,7 +20,7 @@ public class SyncHealthRequestData
public double? Temperature { get; set; }
}
public class BodyPartCollection
public record BodyPartCollection
{
[JsonPropertyName("Head")]
public BodyPartHealth? Head { get; set; }
@@ -44,7 +44,7 @@ public class BodyPartCollection
public BodyPartHealth? RightLeg { get; set; }
}
public class BodyPartHealth
public record BodyPartHealth
{
[JsonPropertyName("Maximum")]
public int? Maximum { get; set; }
+5 -5
View File
@@ -11,7 +11,7 @@ public class WorkoutData : Dictionary<string, object>
public WorkoutSkills? Skills { get; set; }
}
public class WorkoutSkills
public record WorkoutSkills
{
[JsonPropertyName("Common")]
public List<WorkoutSkillCommon>? Common { get; set; }
@@ -26,7 +26,7 @@ public class WorkoutSkills
public int? Points { get; set; }
}
public class WorkoutSkillCommon
public record WorkoutSkillCommon
{
[JsonPropertyName("Id")]
public string? Id { get; set; }
@@ -41,7 +41,7 @@ public class WorkoutSkillCommon
public long? LastAccess { get; set; }
}
public class WorkoutEffects
public record WorkoutEffects
{
[JsonPropertyName("Effects")]
public WorkoutEffectsParts? Effects { get; set; }
@@ -53,7 +53,7 @@ public class WorkoutEffects
public int? Energy { get; set; }
}
public class WorkoutEffectsParts
public record WorkoutEffectsParts
{
[JsonPropertyName("Head")]
public WorkoutBodyPart? Head { get; set; }
@@ -80,7 +80,7 @@ public class WorkoutEffectsParts
public WorkoutBodyPart? Common { get; set; }
}
public class WorkoutBodyPart
public record WorkoutBodyPart
{
[JsonPropertyName("Regeneration")]
public int? Regeneration { get; set; }
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HandleQTEEventRequestData
public record HandleQTEEventRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; }
@@ -17,4 +17,4 @@ public class HandleQTEEventRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
+7 -7
View File
@@ -4,7 +4,7 @@ using Core.Models.Enums;
namespace Core.Models.Eft.Hideout;
public class HideoutArea
public record HideoutArea
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -40,7 +40,7 @@ public class HideoutArea
public Dictionary<string, Stage>? Stages { get; set; }
}
public class HideoutAreaRequirement
public record HideoutAreaRequirement
{
[JsonPropertyName("areaType")]
public int? AreaType { get; set; }
@@ -52,7 +52,7 @@ public class HideoutAreaRequirement
public string? Type { get; set; }
}
public class Stage
public record Stage
{
[JsonPropertyName("autoUpgrade")]
public bool? AutoUpgrade { get; set; }
@@ -86,7 +86,7 @@ public class Stage
public int? Slots { get; set; }
}
public class StageImprovement
public record StageImprovement
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -101,7 +101,7 @@ public class StageImprovement
public List<StageImprovementRequirement>? Requirements { get; set; }
}
public class StageImprovementBonus
public record StageImprovementBonus
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -126,7 +126,7 @@ public class StageImprovementBonus
public bool? IsVisible { get; set; }
}
public class StageImprovementRequirement
public record StageImprovementRequirement
{
[JsonPropertyName("count")]
public int? Count { get; set; }
@@ -147,7 +147,7 @@ public class StageImprovementRequirement
public string? Type { get; set; }
}
public class StageRequirement : RequirementBase
public record StageRequirement : RequirementBase
{
[JsonPropertyName("areaType")]
public int? AreaType { get; set; }
@@ -2,11 +2,11 @@
namespace Core.Models.Eft.Hideout;
public class HideoutCircleOfCultistProductionStartRequestData
public record HideoutCircleOfCultistProductionStartRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutCircleOfCultistProductionStart";
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutContinuousProductionStartRequestData
public record HideoutContinuousProductionStartRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; } = "HideoutContinuousProductionStart";
@@ -12,4 +12,4 @@ public class HideoutContinuousProductionStartRequestData
[JsonPropertyName("timestamp")]
public double? Timestamp { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables;
namespace Core.Models.Eft.Hideout;
public class HideoutCustomisation
public record HideoutCustomisation
{
[JsonPropertyName("globals")]
public List<HideoutCustomisationGlobal>? Globals { get; set; }
@@ -12,7 +12,7 @@ public class HideoutCustomisation
public List<HideoutCustomisationSlot>? Slots { get; set; }
}
public class HideoutCustomisationGlobal
public record HideoutCustomisationGlobal
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -36,7 +36,7 @@ public class HideoutCustomisationGlobal
public string? ItemId { get; set; }
}
public class HideoutCustomisationSlot
public record HideoutCustomisationSlot
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -61,4 +61,4 @@ public class HideoutCustomisationSlot
[JsonPropertyName("areaTypeId")]
public int? AreaTypeId { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutCustomizationApplyRequestData
public record HideoutCustomizationApplyRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutCustomizationApply";
@@ -15,4 +15,4 @@ public class HideoutCustomizationApplyRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Hideout
{
public class HideoutCustomizationSetMannequinPoseRequest
public record HideoutCustomizationSetMannequinPoseRequest
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutCustomizationSetMannequinPose";
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutDeleteProductionRequestData
public record HideoutDeleteProductionRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutDeleteProductionCommand";
@@ -12,4 +12,4 @@ public class HideoutDeleteProductionRequestData
[JsonPropertyName("timestamp")]
public double? Timestamp { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutImproveAreaRequestData
public record HideoutImproveAreaRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutImproveArea";
@@ -19,4 +19,4 @@ public class HideoutImproveAreaRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
+8 -8
View File
@@ -3,7 +3,7 @@ using Core.Models.Common;
namespace Core.Models.Eft.Hideout;
public class HideoutProductionData
public record HideoutProductionData
{
[JsonPropertyName("recipes")]
public List<HideoutProduction>? Recipes { get; set; }
@@ -15,7 +15,7 @@ public class HideoutProductionData
public List<CultistRecipe>? CultistRecipes { get; set; }
}
public class HideoutProduction
public record HideoutProduction
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -55,7 +55,7 @@ public class HideoutProduction
public bool? IsCodeProduction { get; set; }
}
public class Requirement : RequirementBase
public record Requirement : RequirementBase
{
[JsonPropertyName("templateId")]
public string? TemplateId { get; set; }
@@ -88,13 +88,13 @@ public class Requirement : RequirementBase
public List<string>? GameVersions { get; set; }
}
public class RequirementBase
public record RequirementBase
{
[JsonPropertyName("type")]
public string? Type { get; set; }
}
public class ScavRecipe
public record ScavRecipe
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
@@ -109,7 +109,7 @@ public class ScavRecipe
public EndProducts? EndProducts { get; set; }
}
public class EndProducts
public record EndProducts
{
[JsonPropertyName("Common")]
public MinMax? Common { get; set; }
@@ -121,8 +121,8 @@ public class EndProducts
public MinMax? Superrare { get; set; }
}
public class CultistRecipe
public record CultistRecipe
{
[JsonPropertyName("_id")]
public string? Id { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutPutItemInRequestData
public record HideoutPutItemInRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutPutItemsInAreaSlots";
@@ -17,11 +17,11 @@ public class HideoutPutItemInRequestData
public long? Timestamp { get; set; }
}
public class ItemDetails
public record ItemDetails
{
[JsonPropertyName("count")]
public int? Count { get; set; }
[JsonPropertyName("id")]
public string? Id { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutScavCaseStartRequestData
public record HideoutScavCaseStartRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutScavCaseProductionStart";
@@ -20,7 +20,7 @@ public class HideoutScavCaseStartRequestData
public long? Timestamp { get; set; }
}
public class HideoutItem
public record HideoutItem
{
[JsonPropertyName("id")]
public string? Id { get; set; }
@@ -29,11 +29,11 @@ public class HideoutItem
public int? Count { get; set; }
}
public class Tool
public record Tool
{
[JsonPropertyName("id")]
public string? Id { get; set; }
[JsonPropertyName("count")]
public int? Count { get; set; }
}
}
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Core.Models.Eft.Hideout;
public class HideoutSettingsBase
public record HideoutSettingsBase
{
[JsonPropertyName("generatorSpeedWithoutFuel")]
public double? GeneratorSpeedWithoutFuel { get; set; }
@@ -18,4 +18,4 @@ public class HideoutSettingsBase
[JsonPropertyName("gpuBoostRate")]
public double? GpuBoostRate { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutSingleProductionStartRequestData
public record HideoutSingleProductionStartRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutSingleProductionStart";
@@ -20,11 +20,11 @@ public class HideoutSingleProductionStartRequestData
public long? Timestamp { get; set; }
}
public class HandoverItem
public record HandoverItem
{
[JsonPropertyName("id")]
public string? Id { get; set; }
[JsonPropertyName("count")]
public int? Count { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutTakeItemOutRequestData
public record HideoutTakeItemOutRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutTakeItemsFromAreaSlots";
@@ -15,4 +15,4 @@ public class HideoutTakeItemOutRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutTakeProductionRequestData
public record HideoutTakeProductionRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutTakeProduction";
@@ -12,4 +12,4 @@ public class HideoutTakeProductionRequestData
[JsonPropertyName("timestamp")]
public int? Timestamp { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutToggleAreaRequestData
public record HideoutToggleAreaRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutToggleArea";
@@ -15,4 +15,4 @@ public class HideoutToggleAreaRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Core.Models.Eft.Hideout;
public class HideoutUpgradeCompleteRequestData
public record HideoutUpgradeCompleteRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutUpgradeComplete";
@@ -12,4 +12,4 @@ public class HideoutUpgradeCompleteRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}
@@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables;
namespace Core.Models.Eft.Hideout;
public class HideoutUpgradeRequestData
public record HideoutUpgradeRequestData
{
[JsonPropertyName("Action")]
public string? Action { get; set; } = "HideoutUpgrade";
@@ -16,4 +16,4 @@ public class HideoutUpgradeRequestData
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
}

Some files were not shown because too many files have changed in this diff Show More