mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 01:06:35 +00:00
Rename 'IPckFileSerializer' to 'IPckSerializer'
To be more consistent with the name of 'IPckDeserializer'
This commit is contained in:
@@ -42,7 +42,7 @@ namespace PckStudio.Extensions
|
||||
return formatReader.FromStream(ms);
|
||||
}
|
||||
|
||||
internal static void SetSerializedData<T>(this PckFileData file, T obj, IPckFileSerializer<T> serializer)
|
||||
internal static void SetSerializedData<T>(this PckFileData file, T obj, IPckSerializer<T> serializer)
|
||||
{
|
||||
serializer.Serialize(obj, ref file);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ using OMI.Formats.Pck;
|
||||
|
||||
namespace PckStudio.Interfaces
|
||||
{
|
||||
internal interface IPckFileSerializer<T>
|
||||
internal interface IPckSerializer<T>
|
||||
{
|
||||
public void Serialize(T obj, ref PckFileData file);
|
||||
}
|
||||
@@ -13,7 +13,7 @@ using PckStudio.Interfaces;
|
||||
|
||||
namespace PckStudio.Internal.Serializer
|
||||
{
|
||||
internal sealed class AnimationSerializer : IPckFileSerializer<Animation>
|
||||
internal sealed class AnimationSerializer : IPckSerializer<Animation>
|
||||
{
|
||||
public static readonly AnimationSerializer DefaultSerializer = new AnimationSerializer();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using PckStudio.IO.TGA;
|
||||
|
||||
namespace PckStudio.Internal.Serializer
|
||||
{
|
||||
internal sealed class ImageSerializer : IPckFileSerializer<Image>
|
||||
internal sealed class ImageSerializer : IPckSerializer<Image>
|
||||
{
|
||||
public static readonly ImageSerializer DefaultSerializer = new ImageSerializer();
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
<Compile Include="Internal\Serializer\AnimationSerializer.cs" />
|
||||
<Compile Include="Internal\Deserializer\AnimationDeserializer.cs" />
|
||||
<Compile Include="Interfaces\IPckDeserializer.cs" />
|
||||
<Compile Include="Interfaces\IPckFileSerializer.cs" />
|
||||
<Compile Include="Interfaces\IPckSerializer.cs" />
|
||||
<Compile Include="Internal\Json\Entities.cs" />
|
||||
<Compile Include="Internal\Json\EntityInfo.cs" />
|
||||
<Compile Include="Internal\ResourceCategory.cs" />
|
||||
|
||||
Reference in New Issue
Block a user