From 189c28dbd36131977e8bd9826be35c312e90d3c9 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Sat, 6 Apr 2024 23:26:53 +0200 Subject: [PATCH] SkinBOX - Add static member 'ValidBoxTypes' --- PCK-Studio/Internal/SkinBOX.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/PCK-Studio/Internal/SkinBOX.cs b/PCK-Studio/Internal/SkinBOX.cs index 670a42f2..37dfcd6e 100644 --- a/PCK-Studio/Internal/SkinBOX.cs +++ b/PCK-Studio/Internal/SkinBOX.cs @@ -17,6 +17,7 @@ **/ using System; using System.Collections.Generic; +using System.Linq; using System.Numerics; namespace PckStudio.Internal @@ -25,6 +26,28 @@ namespace PckStudio.Internal { public static readonly SkinBOX Empty = new SkinBOX("HEAD", new Vector3(-4, -8, -4), new Vector3(8), Vector2.Zero); + public static readonly string[] BaseTypes = new string[] + { + "HEAD", + "BODY", + "ARM0", + "ARM1", + "LEG0", + "LEG1", + }; + + public static readonly string[] OverlayTypes = new string[] + { + "HEADWEAR", + "JACKET", + "SLEEVE0", + "SLEEVE1", + "PANTS0", + "PANTS1", + }; + + public static readonly string[] ValidBoxTypes = BaseTypes.Concat(OverlayTypes).ToArray(); + public string Type { get; set; } public Vector3 Pos; public Vector3 Size;