Send string representation of notification type enum to client to let profile changes work #368
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||
using SPTarkov.Server.Core.Models.Eft.Profile;
|
||||
using SPTarkov.Server.Core.Models.Eft.Ws;
|
||||
using SPTarkov.Server.Core.Models.Enums;
|
||||
using SPTarkov.Server.Core.Utils.Json.Converters;
|
||||
|
||||
namespace SPTarkov.Server.Core.Models.Spt.Dialog;
|
||||
|
||||
@@ -155,7 +155,7 @@ public record ProfileChangeEvent
|
||||
}
|
||||
|
||||
[JsonPropertyName("Type")]
|
||||
public ProfileChangeEventType? Type
|
||||
public string Type
|
||||
{
|
||||
get;
|
||||
set;
|
||||
@@ -182,16 +182,3 @@ public record ProfileChangeEvent
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
[EftEnumConverter]
|
||||
public enum ProfileChangeEventType
|
||||
{
|
||||
TraderSalesSum,
|
||||
TraderStanding,
|
||||
ProfileLevel,
|
||||
SkillPoints,
|
||||
ExamineAllItems,
|
||||
UnlockTrader,
|
||||
AssortmentUnlockRule,
|
||||
HideoutAreaLevel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user