using Microsoft.Xna.Framework.Content.Pipeline; using Newtonsoft.Json; using System.Text; namespace RecrownedAthenaeum.Pipeline.TextureAtlas { [ContentProcessor(DisplayName = "Texture Atlas Processor - RecrownedAthenaeum")] class TextureAtlasProcessor : ContentProcessor { public override byte[] Process(TextureAtlasData input, ContentProcessorContext context) { string serialized = JsonConvert.SerializeObject(input); return Encoding.UTF8.GetBytes(serialized); } } }