2018-12-04 19:19:31 -06:00
|
|
|
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
2018-12-05 02:28:09 -06:00
|
|
|
|
using Newtonsoft.Json;
|
2019-01-15 17:49:38 -06:00
|
|
|
|
using RecrownedAthenaeum.Serializable;
|
2018-12-04 19:19:31 -06:00
|
|
|
|
|
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
|
|
|
{
|
2019-01-13 22:05:34 -06:00
|
|
|
|
[ContentProcessor(DisplayName = "Texture Atlas - RecrownedAthenaeum")]
|
|
|
|
|
class TextureAtlasProcessor : ContentProcessor<string, TextureAtlasData>
|
2018-12-04 19:19:31 -06:00
|
|
|
|
{
|
2019-01-13 22:05:34 -06:00
|
|
|
|
public override TextureAtlasData Process(string input, ContentProcessorContext context)
|
2018-12-04 19:19:31 -06:00
|
|
|
|
{
|
2019-01-13 22:05:34 -06:00
|
|
|
|
TextureAtlasData textureAtlasData = JsonConvert.DeserializeObject<TextureAtlasData>(input);
|
|
|
|
|
context.AddDependency(textureAtlasData.textureName);
|
|
|
|
|
return textureAtlasData;
|
2018-12-04 19:19:31 -06:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|