mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
I've moved trader services handling from Aki.Debugging BTR code into Aki.SinglePlayer This simplifies some of the code, and allows a more "generic" implementation. I've also patched the GetTraderServicesDataFromServer and TryPurchaseTraderService methods to properly utilize the TraderServicesManager for storing service state For now, this makes Aki.Debugging depend on Aki.SinglePlayer, this can be reverted once the BTR stuff is moved Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: SPT-AKI/Modules#61 Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
18 lines
475 B
C#
18 lines
475 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<string, int> ItemsToPay { get; set; }
|
|
|
|
[JsonProperty("subServices")]
|
|
public Dictionary<string, int> SubServices { get; set; }
|
|
}
|
|
} |