36 lines
1.2 KiB
C#
Raw Normal View History

using System.Text.Json.Serialization;
using LootDumpProcessor.Utils;
2023-08-12 19:08:38 +01:00
using Newtonsoft.Json;
namespace LootDumpProcessor.Model
{
public class Upd : ICloneable
{
[JsonProperty("StackObjectsCount", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("StackObjectsCount")]
public object? StackObjectsCount { get; set; }
2023-08-12 19:08:38 +01:00
[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)
2023-08-12 19:08:38 +01:00
};
}
}
}