mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-18 09:58:13 +00:00
Move Common functionality to Core project & rendering and Model support as well
This commit is contained in:
23
PckStudio.Core/Skin/SkinIdentifier.cs
Normal file
23
PckStudio.Core/Skin/SkinIdentifier.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace PckStudio.Core.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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user