chomp
6e4c7abf73
Co-authored-by: Alex <alex@dm-me-for-questions.com> Reviewed-on: SPT-AKI/LootDumpProcessor#6
25 lines
701 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
} |