more db progress

This commit is contained in:
Alex
2025-01-07 20:00:37 +00:00
parent 7fcce40acc
commit 27422ff33a
13 changed files with 228 additions and 133 deletions
+8 -3
View File
@@ -5,8 +5,13 @@ namespace Core.Models.Spt.Bots;
public class Bots
{
public Dictionary<string, BotType> types { get; }
[JsonPropertyName("types")]
public Dictionary<string, BotType> Types { get; set; }
[JsonPropertyName("base")]
public BotBase Base { get; }
public BotCore core { get; }
public BotBase Base { get; set; }
[JsonPropertyName("core")]
public Dictionary<string, object> Core { get; set; }
}
+1 -1
View File
@@ -78,7 +78,7 @@ public class EventQuestData
public long StartTimestamp { get; set; }
[JsonPropertyName("endTimestamp")]
[JsonConverter(typeof(NullableObjectToLongConverter))]
[JsonConverter(typeof(StringToNumberFactoryConverter))]
public long? EndTimestamp { get; set; }
[JsonPropertyName("yearly")]
+4 -4
View File
@@ -32,19 +32,19 @@ public class SeasonDateTimes
public string Name { get; set; }
[JsonPropertyName("startDay")]
[JsonConverter(typeof(NotNullObjectToIntConverter))]
[JsonConverter(typeof(StringToNumberFactoryConverter))]
public int StartDay { get; set; }
[JsonPropertyName("startMonth")]
[JsonConverter(typeof(NotNullObjectToIntConverter))]
[JsonConverter(typeof(StringToNumberFactoryConverter))]
public int StartMonth { get; set; }
[JsonPropertyName("endDay")]
[JsonConverter(typeof(NotNullObjectToIntConverter))]
[JsonConverter(typeof(StringToNumberFactoryConverter))]
public int EndDay { get; set; }
[JsonPropertyName("endMonth")]
[JsonConverter(typeof(NotNullObjectToIntConverter))]
[JsonConverter(typeof(StringToNumberFactoryConverter))]
public int EndMonth { get; set; }
}