mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-30 11:21:23 +00:00
Move Animation Serializer/Deserializer to Serializer/Deserializer folder
This commit is contained in:
@@ -32,9 +32,8 @@ using PckStudio.Forms.Additional_Popups.Animation;
|
||||
using PckStudio.Extensions;
|
||||
using PckStudio.Properties;
|
||||
using PckStudio.Internal;
|
||||
using PckStudio.Internal.Json;
|
||||
using PckStudio.Helper;
|
||||
using AnimatedGif;
|
||||
using PckStudio.Internal.Deserializer;
|
||||
|
||||
namespace PckStudio.Forms.Editor
|
||||
{
|
||||
|
||||
@@ -32,7 +32,9 @@ using OMI.Workers.Color;
|
||||
using PckStudio.Extensions;
|
||||
using PckStudio.Helper;
|
||||
using PckStudio.Internal;
|
||||
using PckStudio.Internal.Deserializer;
|
||||
using PckStudio.Internal.Json;
|
||||
using PckStudio.Internal.Serializer;
|
||||
|
||||
namespace PckStudio.Forms.Editor
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ using OMI.Formats.Pck;
|
||||
using PckStudio.Extensions;
|
||||
using PckStudio.Interfaces;
|
||||
|
||||
namespace PckStudio.Internal
|
||||
namespace PckStudio.Internal.Deserializer
|
||||
{
|
||||
internal sealed class AnimationDeserializer : IPckDeserializer<Animation>
|
||||
{
|
||||
@@ -11,7 +11,7 @@ using OMI.Formats.Pck;
|
||||
using PckStudio.Extensions;
|
||||
using PckStudio.Interfaces;
|
||||
|
||||
namespace PckStudio.Internal
|
||||
namespace PckStudio.Internal.Serializer
|
||||
{
|
||||
internal sealed class AnimationSerializer : IPckFileSerializer<Animation>
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace PckStudio.Internal
|
||||
string anim = animation.BuildAnim();
|
||||
file.SetProperty("ANIM", anim);
|
||||
var texture = animation.BuildTexture();
|
||||
file.SetData(texture, ImageFormat.Png);
|
||||
file.SetTexture(texture);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,9 @@ using PckStudio.Classes.Utils;
|
||||
using PckStudio.Helper;
|
||||
using System.Text.RegularExpressions;
|
||||
using PckStudio.Internal.Json;
|
||||
using PckStudio.Internal.Deserializer;
|
||||
using PckStudio.Internal.Serializer;
|
||||
using OMI.Workers;
|
||||
|
||||
namespace PckStudio
|
||||
{
|
||||
|
||||
@@ -139,7 +139,8 @@
|
||||
<Compile Include="Extensions\PckFileDataExtensions.cs" />
|
||||
<Compile Include="Extensions\TreeNodeExtensions.cs" />
|
||||
<Compile Include="Internal\AnimationSerializer.cs" />
|
||||
<Compile Include="Internal\AnimationDeserializer.cs" />
|
||||
<Compile Include="Internal\Serializer\AnimationSerializer.cs" />
|
||||
<Compile Include="Internal\Deserializer\AnimationDeserializer.cs" />
|
||||
<Compile Include="Interfaces\IPckDeserializer.cs" />
|
||||
<Compile Include="Interfaces\IPckFileSerializer.cs" />
|
||||
<Compile Include="Internal\Json\Entities.cs" />
|
||||
|
||||
Reference in New Issue
Block a user