recrownedathenaeum/RecrownedAthenaeum.Pipeline/TextureAtlas/TextureAtlasWriter.cs

22 lines
700 B
C#
Raw Normal View History

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<TextureAtlasData>
{
public override string GetRuntimeReader(TargetPlatform targetPlatform)
{
2019-01-21 05:06:25 +00:00
return "RecrownedAthenaeum.ContentReaders.TextureAtlasDataReader, RecrownedAthenaeum";
}
protected override void Write(ContentWriter output, TextureAtlasData value)
{
output.Write(JsonConvert.SerializeObject(value));
}
}
}