enum fix and imports

This commit is contained in:
CWX
2025-01-06 17:38:02 +00:00
parent 36fae02ca5
commit 0454dbdf28
7 changed files with 27 additions and 16 deletions
+14 -13
View File
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Tables;
namespace Core.Models.Spt.Dialog; namespace Core.Models.Spt.Dialog;
@@ -44,7 +45,7 @@ public class SendMessageDetails
/// Optional - Items to send to player /// Optional - Items to send to player
/// </summary> /// </summary>
[JsonPropertyName("items")] [JsonPropertyName("items")]
public List<IItem>? Items { get; set; } public List<Item>? Items { get; set; }
/// <summary> /// <summary>
/// Optional - How long items will be stored in mail before expiry /// Optional - How long items will be stored in mail before expiry
@@ -62,19 +63,19 @@ public class SendMessageDetails
/// Optional - ragfair related /// Optional - ragfair related
/// </summary> /// </summary>
[JsonPropertyName("systemData")] [JsonPropertyName("systemData")]
public ISystemData? SystemData { get; set; } public SystemData? SystemData { get; set; }
/// <summary> /// <summary>
/// Optional - Used by ragfair messages /// Optional - Used by ragfair messages
/// </summary> /// </summary>
[JsonPropertyName("ragfairDetails")] [JsonPropertyName("ragfairDetails")]
public IMessageContentRagfair? RagfairDetails { get; set; } public MessageContentRagfair? RagfairDetails { get; set; }
/// <summary> /// <summary>
/// OPTIONAL - allows modification of profile settings via mail /// OPTIONAL - allows modification of profile settings via mail
/// </summary> /// </summary>
[JsonPropertyName("profileChangeEvents")] [JsonPropertyName("profileChangeEvents")]
public List<IProfileChangeEvent>? ProfileChangeEvents { get; set; } public List<ProfileChangeEvent>? ProfileChangeEvents { get; set; }
} }
public class ProfileChangeEvent public class ProfileChangeEvent
@@ -92,14 +93,14 @@ public class ProfileChangeEvent
public string? Entity { get; set; } public string? Entity { get; set; }
} }
public struct ProfileChangeEventType public enum ProfileChangeEventType
{ {
public const string TRADER_SALES_SUM = "TraderSalesSum"; TraderSalesSum,
public const string TRADER_STANDING = "TraderStanding"; TraderStanding,
public const string PROFILE_LEVEL = "ProfileLevel"; ProfileLevel,
public const string SKILL_POINTS = "SkillPoints"; SkillPoints,
public const string EXAMINE_ALL_ITEMS = "ExamineAllItems"; ExamineAllItems,
public const string UNLOCK_TRADER = "UnlockTrader"; UnlockTrader,
public const string ASSORT_UNLOCK_RULE = "AssortmentUnlockRule"; AssortmentUnlockRule,
public const string HIDEOUT_AREA_LEVEL = "HideoutAreaLevel"; HideoutAreaLevel
} }
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Tables;
namespace Core.Models.Spt.Fence; namespace Core.Models.Spt.Fence;
@@ -1,4 +1,6 @@
namespace Core.Models.Spt.Generators; using Core.Models.Eft.Common;
namespace Core.Models.Spt.Generators;
public class LocationGenerator public class LocationGenerator
{ {
@@ -1,4 +1,6 @@
namespace Core.Models.Spt.Generators; using Core.Models.Eft.Common.Tables;
namespace Core.Models.Spt.Generators;
public class RagfairAssortGenerator public class RagfairAssortGenerator
{ {
@@ -1,4 +1,7 @@
namespace Core.Models.Spt.Generators; using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Ragfair;
namespace Core.Models.Spt.Generators;
public class RagfairOfferGenerator public class RagfairOfferGenerator
{ {
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Tables;
namespace Core.Models.Spt.Inventory; namespace Core.Models.Spt.Inventory;
+1
View File
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Core.Models.Eft.Common;
namespace Core.Models.Spt.Mod; namespace Core.Models.Spt.Mod;