2024-04-28 08:17:13 +00:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Reflection;
|
2024-04-20 22:32:28 +00:00
|
|
|
|
2024-05-21 19:10:17 +01:00
|
|
|
namespace SPT.Custom.Models
|
2024-04-20 22:32:28 +00:00
|
|
|
{
|
2024-04-28 08:17:13 +00:00
|
|
|
[Serializable]
|
2024-04-20 22:32:28 +00:00
|
|
|
public struct DifficultyInfo
|
|
|
|
{
|
2024-04-28 08:17:13 +00:00
|
|
|
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.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-04-20 22:32:28 +00:00
|
|
|
|
2024-04-28 08:17:13 +00:00
|
|
|
[JsonProperty("easy")]
|
|
|
|
public Dictionary<string, object> easy;
|
2024-04-20 22:32:28 +00:00
|
|
|
|
2024-04-28 08:17:13 +00:00
|
|
|
[JsonProperty("hard")]
|
|
|
|
public Dictionary<string, object> hard;
|
2024-04-20 22:32:28 +00:00
|
|
|
|
2024-04-28 08:17:13 +00:00
|
|
|
[JsonProperty("impossible")]
|
|
|
|
public Dictionary<string, object> impossible;
|
|
|
|
|
|
|
|
[JsonProperty("normal")]
|
|
|
|
public Dictionary<string, object> normal;
|
2024-04-20 22:32:28 +00:00
|
|
|
}
|
|
|
|
}
|