36 lines
1.2 KiB
C#
Raw Normal View History

2023-08-12 19:08:38 +01:00
using System.Text.Json.Serialization;
using LootDumpProcessor.Process.Processor;
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 = this.StackObjectsCount,
FireMode = ProcessorUtil.Copy(this.FireMode),
Foldable = ProcessorUtil.Copy(this.Foldable),
Repairable = ProcessorUtil.Copy(this.Repairable)
};
}
}
}