fix types

This commit is contained in:
CWX
2025-01-16 20:20:59 +00:00
parent bde5fb90db
commit 0bd70f5f6c
4 changed files with 15 additions and 21 deletions
+1 -9
View File
@@ -135,6 +135,7 @@ public class EquipmentBuild : UserBuild
public List<Item>? Items { get; set; } // Same as PMC inventory items
[JsonPropertyName("BuildType")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public EquipmentBuildType? BuildType { get; set; }
}
@@ -165,15 +166,6 @@ public class MagazineTemplateAmmoItem
/** Used by defaultEquipmentPresets.json */
public class DefaultEquipmentPreset : EquipmentBuild
{
[JsonPropertyName("Items")]
public List<Item>? Items { get; set; }
[JsonPropertyName("Root")]
public string? Root { get; set; }
[JsonPropertyName("BuildType")]
public string? BuildType { get; set; }
[JsonPropertyName("type")]
public string? Type { get; set; }
}
+4 -3
View File
@@ -2,6 +2,7 @@
public enum EquipmentBuildType
{
CUSTOM = 0,
STANDARD = 1
}
Custom,
Standard,
Storage
}
+3 -2
View File
@@ -10,14 +10,15 @@ public class ClientLogRequest : IRequestData
public string? Source { get; set; }
[JsonPropertyName("Level")]
[JsonConverter(typeof(JsonStringEnumConverter))] // TODO: Fix in modules to send enumValue instead of string
public LogLevel? Level { get; set; }
[JsonPropertyName("Message")]
public string? Message { get; set; }
[JsonPropertyName("Color")]
public LogTextColor? Color { get; set; }
public string? Color { get; set; } // TODO: FIX THIS SHIT FOR COLOURS
[JsonPropertyName("BackgroundColor")]
public LogBackgroundColor? BackgroundColor { get; set; }
public string? BackgroundColor { get; set; }
}
+7 -7
View File
@@ -2,12 +2,12 @@
public enum LogLevel
{
ERROR = 0,
WARN = 1,
SUCCESS = 2,
INFO = 3,
CUSTOM = 4,
DEBUG = 5
Error,
Warn,
Success,
Info,
Custom,
Debug
}
// TODO: needs to be moved to enums namespace
// TODO: needs to be moved to enums namespace