19 lines
733 B
C#
19 lines
733 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
|
|
using Microsoft.Xna.Framework.Content.Pipeline.Processors;
|
|
using Newtonsoft.Json;
|
|
using RecrownedAthenaeum.Data;
|
|
using System.IO;
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
{
|
|
[ContentImporter(".tatlas", DisplayName = "Texture Atlas Importer - RecrownedAthenaeum", DefaultProcessor = "TextureAtlasProcessor")]
|
|
internal class TextureAtlasImporter : ContentImporter<TextureAtlasData>
|
|
{
|
|
public override TextureAtlasData Import(string filename, ContentImporterContext context)
|
|
{
|
|
return JsonConvert.DeserializeObject<TextureAtlasData>(File.ReadAllText(filename));
|
|
}
|
|
}
|
|
}
|