2024-04-16 18:29:40 +00:00
|
|
|
using System.Text.Json.Serialization;
|
2023-08-12 19:08:38 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace LootDumpProcessor.Model
|
|
|
|
{
|
|
|
|
public class Vector3 : ICloneable
|
|
|
|
{
|
|
|
|
[JsonProperty("x", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
[JsonPropertyName("x")]
|
2024-08-22 15:33:27 -04:00
|
|
|
public float? X { get; set; }
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
[JsonProperty("y", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
[JsonPropertyName("y")]
|
2024-08-22 15:33:27 -04:00
|
|
|
public float? Y { get; set; }
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
[JsonProperty("z", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
[JsonPropertyName("z")]
|
2024-08-22 15:33:27 -04:00
|
|
|
public float? Z { get; set; }
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
public object Clone()
|
|
|
|
{
|
|
|
|
return new Vector3
|
|
|
|
{
|
2024-04-16 18:29:40 +00:00
|
|
|
X = X,
|
|
|
|
Y = Y,
|
|
|
|
Z = Z
|
2023-08-12 19:08:38 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|