18 lines
655 B
C#
18 lines
655 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Newtonsoft.Json;
|
|
using RecrownedAthenaeum.Serializable;
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
{
|
|
[ContentProcessor(DisplayName = "Texture Atlas - RecrownedAthenaeum")]
|
|
class TextureAtlasProcessor : ContentProcessor<string, TextureAtlasData>
|
|
{
|
|
public override TextureAtlasData Process(string input, ContentProcessorContext context)
|
|
{
|
|
TextureAtlasData textureAtlasData = JsonConvert.DeserializeObject<TextureAtlasData>(input);
|
|
context.AddDependency(textureAtlasData.textureName);
|
|
return textureAtlasData;
|
|
}
|
|
}
|
|
}
|