0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
DrakiaXYZ d08754fb61 Work towards implementing LK services (!79)
- Move clearing trader service data to raid end instead of as part of BTR Manager
- Fix data type for TraderServices ItemsToPay property
- Add ItemsToReceive property to TraderServices (Used for LK amulet)
- Don't throw NRE when nothing is bound to OnTraderServicePurchased

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#79
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-12 09:22:45 +00:00

21 lines
572 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; }
}
}