fixed up pipeline extension process because monogame is weird.
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
using Microsoft.Xna.Framework.Content.Pipeline;
|
||||
using Newtonsoft.Json;
|
||||
using System.IO;
|
||||
using TImport = System.String;
|
||||
|
||||
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
||||
{
|
||||
[ContentImporter(".tatlas", DisplayName = "Texture Atlas Importer", DefaultProcessor = "TextureAtlasProcessor")]
|
||||
internal class TextureAtlasImporter : ContentImporter<TextureAtlasData>
|
||||
internal class TextureAtlasImporter : ContentImporter<TImport>
|
||||
{
|
||||
public override TextureAtlasData Import(string filename, ContentImporterContext context)
|
||||
public override TImport Import(string filename, ContentImporterContext context)
|
||||
{
|
||||
TextureAtlasData atlas = JsonConvert.DeserializeObject<TextureAtlasData>(File.ReadAllText(filename));
|
||||
context.AddDependency(atlas.textureName);
|
||||
return atlas;
|
||||
return File.ReadAllText(filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user