PckFileDataExtensions - Rename 'Get<T>' to 'GetDeserializedData'/'GetData' respectively

This commit is contained in:
miku-666
2024-04-05 22:47:51 +02:00
parent 8784a12237
commit a4e9440ea0
3 changed files with 9 additions and 9 deletions

View File

@@ -519,7 +519,7 @@ namespace PckStudio
!file.Filename.StartsWith(ResourceLocation.GetPathFromCategory(ResourceCategory.BlockAnimation)))
return;
Animation animation = file.Get(AnimationDeserializer.DefaultDeserializer);
Animation animation = file.GetDeserializedData(AnimationDeserializer.DefaultDeserializer);
string filename = Path.GetFileNameWithoutExtension(file.Filename);
var textureInfos = ResourceLocation.GetCategoryFromPath(file.Filename) switch
@@ -563,7 +563,7 @@ namespace PckStudio
_ => GameRuleFile.CompressionType.Unknown
};
GameRuleFile grf = file.Get(new GameRuleFileReader(compressiontype));
GameRuleFile grf = file.GetData(new GameRuleFileReader(compressiontype));
using GameRuleFileEditor grfEditor = new GameRuleFileEditor(grf);
if (grfEditor.ShowDialog(this) == DialogResult.OK)
@@ -2442,7 +2442,7 @@ namespace PckStudio
{
try
{
ModelContainer container = file.Get(new ModelFileReader());
ModelContainer container = file.GetData(new ModelFileReader());
if (container.Version == version)
{