LootDumpProcessor/Model/Repairable.cs

25 lines
714 B
C#
Raw Normal View History

2023-08-12 19:08:38 +01:00
using System.Text.Json.Serialization;
using Newtonsoft.Json;
namespace LootDumpProcessor.Model
{
public class Repairable : ICloneable
{
[JsonProperty("Durability", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("Durability")]
public int? Durability { get; set; }
[JsonProperty("MaxDurability", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("MaxDurability")]
public int? MaxDurability { get; set; }
public object Clone()
{
return new Repairable
{
Durability = this.Durability,
MaxDurability = this.MaxDurability
};
}
}
}