preferences now use object as type for serialization and no longer uses marker interface.

This commit is contained in:
2018-12-05 00:03:00 -06:00
parent 151480eaee
commit 87823b26d6
9 changed files with 28 additions and 35 deletions

View File

@@ -11,13 +11,13 @@ using System.Xml.Serialization;
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
{
internal class TextureAtlasImporter : ContentImporter<TextureAtlasTemplate>
internal class TextureAtlasImporter : ContentImporter<TextureAtlasFile>
{
public override TextureAtlasTemplate Import(string filename, ContentImporterContext context)
public override TextureAtlasFile Import(string filename, ContentImporterContext context)
{
StreamReader stream = new StreamReader(filename);
XmlSerializer serializer = new XmlSerializer(typeof(TextureAtlasTemplate));
TextureAtlasTemplate atlas = (TextureAtlasTemplate)serializer.Deserialize(stream);
XmlSerializer serializer = new XmlSerializer(typeof(TextureAtlasFile));
TextureAtlasFile atlas = (TextureAtlasFile)serializer.Deserialize(stream);
context.AddDependency(atlas.textureName);
stream.Dispose();
return atlas;