using Microsoft.Xna.Framework.Content.Pipeline; using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler; using Newtonsoft.Json; using RecrownedAthenaeum.Data; namespace RecrownedAthenaeum.Pipeline.TextureAtlas { [ContentTypeWriter] class TextureAtlasWriter : ContentTypeWriter { public override string GetRuntimeReader(TargetPlatform targetPlatform) { return "RecrownedAthenaeum.ContentReaders, TextureAtlasDataReader"; } protected override void Write(ContentWriter output, TextureAtlasData value) { output.Write(JsonConvert.SerializeObject(value)); } } }