mirror of
https://github.com/sp-tarkov/loot-dump-processor.git
synced 2025-02-12 17:10:45 -05:00
![CWX](/assets/img/avatar_default.png)
* Seperate Tasks into their own methods, Add method to add map name to file name * Formatting and added a few comments * Add Clear method to collectors * Change to local var, so data isnt stored longer than needed * add Clear method to Storages * Add changes for Per Map Processing and file i forgot to commit last time * Update config to have mapNames in it, removed unused yaml file * update comment * changed to not throw so Filemode still can be used
64 lines
2.1 KiB
C#
64 lines
2.1 KiB
C#
using System.Text.Json.Serialization;
|
|
using LootDumpProcessor.Serializers.Json;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace LootDumpProcessor.Model.Config;
|
|
|
|
public class Config
|
|
{
|
|
[JsonProperty("serverLocation")]
|
|
[JsonPropertyName("serverLocation")]
|
|
public string? ServerLocation { get; set; }
|
|
|
|
[JsonProperty("threads")]
|
|
[JsonPropertyName("threads")]
|
|
public int Threads { get; set; } = 6;
|
|
|
|
[JsonProperty("threadPoolingTimeoutMs")]
|
|
[JsonPropertyName("threadPoolingTimeoutMs")]
|
|
public int ThreadPoolingTimeoutMs { get; set; } = 1000;
|
|
|
|
[JsonProperty("jsonSerializer")]
|
|
[JsonPropertyName("jsonSerializer")]
|
|
public JsonSerializerTypes JsonSerializer { get; set; } = JsonSerializerTypes.DotNet;
|
|
|
|
[JsonProperty("manualGarbageCollectionCalls")]
|
|
[JsonPropertyName("manualGarbageCollectionCalls")]
|
|
public bool ManualGarbageCollectionCalls { get; set; }
|
|
|
|
[JsonProperty("dataStorageConfig")]
|
|
[JsonPropertyName("dataStorageConfig")]
|
|
public DataStorageConfig DataStorageConfig { get; set; }
|
|
|
|
[JsonProperty("loggerConfig")]
|
|
[JsonPropertyName("loggerConfig")]
|
|
public LoggerConfig LoggerConfig { get; set; }
|
|
|
|
[JsonProperty("readerConfig")]
|
|
[JsonPropertyName("readerConfig")]
|
|
public ReaderConfig ReaderConfig { get; set; }
|
|
|
|
[JsonProperty("processorConfig")]
|
|
[JsonPropertyName("processorConfig")]
|
|
public ProcessorConfig ProcessorConfig { get; set; }
|
|
|
|
[JsonProperty("dumpProcessorConfig")]
|
|
[JsonPropertyName("dumpProcessorConfig")]
|
|
public DumpProcessorConfig DumpProcessorConfig { get; set; }
|
|
|
|
[JsonProperty("writerConfig")]
|
|
[JsonPropertyName("writerConfig")]
|
|
public WriterConfig WriterConfig { get; set; }
|
|
|
|
[JsonProperty("collectorConfig")]
|
|
[JsonPropertyName("collectorConfig")]
|
|
public CollectorConfig CollectorConfig { get; set; }
|
|
|
|
[JsonProperty("containerIgnoreList")]
|
|
[JsonPropertyName("containerIgnoreList")]
|
|
public Dictionary<string, string[]> ContainerIgnoreList { get; set; }
|
|
|
|
[JsonProperty("mapsToProcess")]
|
|
[JsonPropertyName("mapsToProcess")]
|
|
public List<string> MapsToProcess { get; set; }
|
|
} |