chomp
6e4c7abf73
Co-authored-by: Alex <alex@dm-me-for-questions.com> Reviewed-on: SPT-AKI/LootDumpProcessor#6
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
using LootDumpProcessor.Utils;
|
|
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
|
|
{
|
|
Name = Name,
|
|
Weight = Weight,
|
|
Position = ProcessorUtil.Copy(Position),
|
|
Rotation = ProcessorUtil.Copy(Rotation)
|
|
};
|
|
}
|
|
}
|
|
} |