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.Text;
|
|
|
|
|
|
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
[ContentProcessor(DisplayName = "Texture Atlas - RecrownedAthenaeum")]
|
|
|
|
|
class TextureAtlasProcessor : ContentProcessor<string, TextureAtlasData>
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
public override TextureAtlasData Process(string input, ContentProcessorContext context)
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
TextureAtlasData textureAtlasData = JsonConvert.DeserializeObject<TextureAtlasData>(input);
|
|
|
|
|
context.AddDependency(textureAtlasData.textureName);
|
|
|
|
|
return textureAtlasData;
|
2018-12-05 01:19:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|