preferences now use object as type for serialization and no longer uses marker interface.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user