2018-12-05 01:19:31 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
2018-12-05 08:28:09 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2018-12-05 01:19:31 +00:00
|
|
|
|
using System.IO;
|
2019-01-14 04:05:34 +00:00
|
|
|
|
using TImport = System.String;
|
2018-12-05 01:19:31 +00:00
|
|
|
|
|
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
|
|
|
{
|
2019-01-13 23:09:27 +00:00
|
|
|
|
[ContentImporter(".tatlas", DisplayName = "Texture Atlas Importer", DefaultProcessor = "TextureAtlasProcessor")]
|
2019-01-14 04:05:34 +00:00
|
|
|
|
internal class TextureAtlasImporter : ContentImporter<TImport>
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
public override TImport Import(string filename, ContentImporterContext context)
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
return File.ReadAllText(filename);
|
2018-12-05 01:19:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|