addded more types, some are unfinished, ill come back to these tomorrow

This commit is contained in:
CWX
2025-01-06 00:32:55 +00:00
parent 529b091029
commit 2f997f6a85
53 changed files with 1938 additions and 12 deletions
+39
View File
@@ -0,0 +1,39 @@
using System.Text.Json.Serialization;
namespace Types.Models.Spt.Config;
public class HttpConfig : BaseConfig
{
[JsonPropertyName("kind")]
public string Kind { get; set; } = "spt-http";
/// <summary>
/// Address used by webserver
/// </summary>
[JsonPropertyName("ip")]
public string Ip { get; set; }
[JsonPropertyName("port")]
public int Port { get; set; }
/// <summary>
/// Address used by game client to connect to
/// </summary>
[JsonPropertyName("backendIp")]
public string BackendIp { get; set; }
[JsonPropertyName("backendPort")]
public string BackendPort { get; set; }
[JsonPropertyName("webSocketPingDelayMs")]
public int WebSocketPingDelayMs { get; set; }
[JsonPropertyName("logRequests")]
public bool LogRequests { get; set; }
/// <summary>
/// e.g. "SPT_Data/Server/images/traders/579dc571d53a0658a154fbec.png": "SPT_Data/Server/images/traders/NewTraderImage.png"
/// </summary>
[JsonPropertyName("serverImagePathOverride")]
public Dictionary<string, string> ServerImagePathOverride { get; set; }
}