0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
DrakiaXYZ f7ded0abf3 Add handling of trader service requirements (!86)
This is primarily handled by the server, but the client does have precautionary code in it

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#86
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-25 23:08:20 +00:00

36 lines
1020 B
C#

using EFT;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Aki.SinglePlayer.Utils.TraderServices
{
public class TraderServiceModel
{
[JsonProperty("serviceType")]
public ETraderServiceType ServiceType { get; set; }
[JsonProperty("itemsToPay")]
public Dictionary<MongoID, int> ItemsToPay { get; set; }
[JsonProperty("subServices")]
public Dictionary<string, int> SubServices { get; set; }
[JsonProperty("itemsToReceive")]
public MongoID[] ItemsToReceive { get; set; }
[JsonProperty("requirements")]
public TraderServiceRequirementsModel Requirements { get; set; }
}
public class TraderServiceRequirementsModel
{
[JsonProperty("completedQuests")]
public string[] CompletedQuests { get; set; }
[JsonProperty("standings")]
public Dictionary<string, float> Standings { get; set; }
[JsonProperty("side")]
public ESideType Side { get; set; }
}
}