diff --git a/PCK-Studio/Internal/Skin/SkinIdentifier.cs b/PCK-Studio/Internal/Skin/SkinIdentifier.cs new file mode 100644 index 00000000..ebe67811 --- /dev/null +++ b/PCK-Studio/Internal/Skin/SkinIdentifier.cs @@ -0,0 +1,23 @@ +using System; +using System.Globalization; + +namespace PckStudio.Internal.Skin +{ + public sealed class SkinIdentifier : IFormattable + { + public int Id { get; } + + public SkinIdentifier(int id) + { + Id = id; + } + + public static implicit operator int(SkinIdentifier _this) => _this.Id; + + public string ToString(string format, IFormatProvider formatProvider) => Id.ToString(format, formatProvider); + + public string ToString(string format) => Id.ToString(format, NumberFormatInfo.CurrentInfo); + + public override string ToString() => Id.ToString(NumberFormatInfo.CurrentInfo); + } +} diff --git a/PCK-Studio/Internal/Skin/SkinModel.cs b/PCK-Studio/Internal/Skin/SkinModel.cs new file mode 100644 index 00000000..ee4ee6d5 --- /dev/null +++ b/PCK-Studio/Internal/Skin/SkinModel.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using OMI.Formats.Pck; + +namespace PckStudio.Internal.Skin +{ + public sealed class SkinModel + { + public readonly List AdditionalBoxes; + public readonly List PartOffsets; + + public SkinModel() + { + AdditionalBoxes = new List(); + PartOffsets = new List(5); + } + + public SkinModel(IEnumerable additionalBoxes, IEnumerable partOffsets) + { + AdditionalBoxes = new List(additionalBoxes); + PartOffsets = new List(partOffsets); + } + } +} diff --git a/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj index 34e18dc8..0aa6d7b7 100644 --- a/PCK-Studio/PckStudio.csproj +++ b/PCK-Studio/PckStudio.csproj @@ -198,7 +198,9 @@ + +