Added missing ExtensionData dicts
Fixed issues with DataGen tool
This commit is contained in:
@@ -174,7 +174,10 @@ public record ItemChanges
|
||||
|
||||
public record DeletedItem
|
||||
{
|
||||
[JsonPropertyName("_id")]
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, object>? ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("_id")]
|
||||
public string Id { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,10 @@ public record MatchGroupJoinRequest : IRequestData
|
||||
|
||||
public record JoinServer
|
||||
{
|
||||
[JsonPropertyName("ping")]
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, object>? ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("ping")]
|
||||
public int? Ping { get; set; }
|
||||
|
||||
[JsonPropertyName("ip")]
|
||||
|
||||
@@ -149,7 +149,10 @@ public record BotConfig : BaseConfig
|
||||
|
||||
public record WeeklyBossSettings
|
||||
{
|
||||
/// <summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, object>? ExtensionData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Should a weekly boss be picked to 100% spawn
|
||||
/// </summary>
|
||||
[JsonPropertyName("enabled")]
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SPTarkov.Server.Core.Models.Spt.Inventory;
|
||||
|
||||
public class FindSlotResult
|
||||
{
|
||||
public FindSlotResult(bool success)
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, object>? ExtensionData { get; set; }
|
||||
|
||||
public FindSlotResult(bool success)
|
||||
{
|
||||
Success = success;
|
||||
}
|
||||
|
||||
@@ -145,8 +145,8 @@ public class JsonExtensionDataGeneratorLauncher
|
||||
|
||||
private static int FindEndClassIndex(string content, int currentIndex)
|
||||
{
|
||||
// we do +3 cause thats the length of what we are searching for
|
||||
return _endRecordClassRegex.Match(content, currentIndex).Index + 3;
|
||||
// we do +3 cause that's the length of what we are searching for
|
||||
return _endRecordClassRegex.Match(content, currentIndex).Index;
|
||||
}
|
||||
|
||||
private static int FindNextClassStartIndex(string content, int currentIndex)
|
||||
|
||||
Reference in New Issue
Block a user