using System; using System.Numerics; using Newtonsoft.Json; namespace PckStudio.Core.Json { public class DefaultModel { [JsonProperty("textureSize", Required = Required.Always)] public Vector2 TextureSize { get; set; } [JsonProperty("parts", Required = Required.Always)] public DefaultPart[] Parts { get; set; } = Array.Empty(); } public class DefaultPart { [JsonProperty("name", Required = Required.Always)] public string Name { get; set; } [JsonProperty("translation")] public Vector3 Translation { get; set; } = Vector3.Zero; [JsonProperty("rotation")] public Vector3 Rotation { get; set; } = Vector3.Zero; [JsonProperty("boxes")] public ModelDefaultBox[] Boxes { get; set; } } public class ModelDefaultBox { [JsonProperty("pos")] public Vector3 Position { get; set; } [JsonProperty("size")] public Vector3 Size { get; set; } [JsonProperty("uv")] public Vector2 Uv { get; set; } [JsonProperty("mirror")] public bool Mirror { get; set; } = false; [JsonProperty("inflate")] public float Inflate { get; set; } = 0f; } }