mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:10:44 -05:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SPT.Custom.Models
|
|
{
|
|
[Serializable]
|
|
public struct DifficultyInfo
|
|
{
|
|
public Dictionary<string, object> this[string key]
|
|
{
|
|
get
|
|
{
|
|
switch (key)
|
|
{
|
|
case "easy":
|
|
return easy;
|
|
case "hard":
|
|
return hard;
|
|
case "impossible":
|
|
return impossible;
|
|
case "normal":
|
|
return normal;
|
|
default:
|
|
throw new ArgumentException($"Difficulty '{key}' does not exist in DifficultyInfo.");
|
|
}
|
|
}
|
|
}
|
|
|
|
[JsonProperty("easy")]
|
|
public Dictionary<string, object> easy;
|
|
|
|
[JsonProperty("hard")]
|
|
public Dictionary<string, object> hard;
|
|
|
|
[JsonProperty("impossible")]
|
|
public Dictionary<string, object> impossible;
|
|
|
|
[JsonProperty("normal")]
|
|
public Dictionary<string, object> normal;
|
|
}
|
|
} |