mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-23 07:36:10 +00:00
24 lines
651 B
C#
24 lines
651 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using OMI.Formats.Pck;
|
|
using PckStudio.Core.Extensions;
|
|
using PckStudio.Interfaces;
|
|
|
|
namespace PckStudio.Core.Deserializer
|
|
{
|
|
public sealed class AtlasDeserializer : IPckAssetDeserializer<Atlas>
|
|
{
|
|
private readonly ResourceLocation _resourceLocation;
|
|
|
|
public AtlasDeserializer(ResourceLocation resourceLocation)
|
|
{
|
|
_resourceLocation = resourceLocation;
|
|
}
|
|
|
|
public Atlas Deserialize(PckAsset asset) => Atlas.FromResourceLocation(asset.GetTexture(), _resourceLocation);
|
|
}
|
|
}
|