LootDumpProcessor/Model/Repairable.cs
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

25 lines
701 B
C#

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 = Durability,
MaxDurability = MaxDurability
};
}
}
}