2023-08-12 19:08:38 +01:00
|
|
|
|
using System.Text.Json.Serialization;
|
2024-01-30 14:54:01 +00:00
|
|
|
|
using LootDumpProcessor.Utils;
|
2023-08-12 19:08:38 +01:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace LootDumpProcessor.Model
|
|
|
|
|
{
|
|
|
|
|
public class GroupPosition : ICloneable
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("Name", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
|
[JsonPropertyName("Name")]
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("Weight", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
|
[JsonPropertyName("Weight")]
|
|
|
|
|
public int? Weight { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("Position", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
|
[JsonPropertyName("Position")]
|
|
|
|
|
public Vector3? Position { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("Rotation", NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
|
[JsonPropertyName("Rotation")]
|
|
|
|
|
public Vector3? Rotation { get; set; }
|
|
|
|
|
|
|
|
|
|
public object Clone()
|
|
|
|
|
{
|
|
|
|
|
return new GroupPosition
|
|
|
|
|
{
|
2024-01-30 14:54:01 +00:00
|
|
|
|
Name = Name,
|
|
|
|
|
Weight = Weight,
|
|
|
|
|
Position = ProcessorUtil.Copy(Position),
|
|
|
|
|
Rotation = ProcessorUtil.Copy(Rotation)
|
2023-08-12 19:08:38 +01:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|