chomp 6e4c7abf73 dump-processor-cleanup (#6)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
Reviewed-on: SPT-AKI/LootDumpProcessor#6
2024-04-16 18:29:40 +00:00

37 lines
1.2 KiB
C#

using System.Text.Json.Serialization;
using LootDumpProcessor.Process.Processor;
using LootDumpProcessor.Utils;
using Newtonsoft.Json;
namespace LootDumpProcessor.Model
{
public class Upd : ICloneable
{
[JsonProperty("StackObjectsCount", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("StackObjectsCount")]
public int? StackObjectsCount { get; set; }
[JsonProperty("FireMode", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("FireMode")]
public FireMode? FireMode { get; set; }
[JsonProperty("Foldable", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("Foldable")]
public Foldable? Foldable { get; set; }
[JsonProperty("Repairable", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("Repairable")]
public Repairable? Repairable { get;set; }
public object Clone()
{
return new Upd
{
StackObjectsCount = StackObjectsCount,
FireMode = ProcessorUtil.Copy(FireMode),
Foldable = ProcessorUtil.Copy(Foldable),
Repairable = ProcessorUtil.Copy(Repairable)
};
}
}
}