mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 19:15:30 +00:00
24 lines
646 B
C#
24 lines
646 B
C#
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);
|
|
}
|
|
}
|