mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-22 02:23:13 +00:00
25 lines
719 B
C#
25 lines
719 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using OMI.Formats.Model;
|
|
using PckStudio.Core.Skin;
|
|
using PckStudio.ModelSupport;
|
|
|
|
namespace PckStudio.ModelSupport.Extension
|
|
{
|
|
public static class SkinExtension
|
|
{
|
|
public static SkinModelInfo GetModelInfo(this Skin skin) => new SkinModelInfo(skin.Texture, skin.Anim, skin.GameFlags, skin.Model);
|
|
|
|
public static void SetModelInfo(this Skin skin, SkinModelInfo modelInfo)
|
|
{
|
|
skin.Texture = modelInfo.Texture;
|
|
skin.Anim = modelInfo.Anim;
|
|
skin.GameFlags = modelInfo.SkinFlags;
|
|
skin.Model = modelInfo.Model;
|
|
}
|
|
}
|
|
}
|