22 lines
660 B
C#
22 lines
660 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
|
|
using Newtonsoft.Json;
|
|
using RecrownedAthenaeum.Data;
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.NinePatch
|
|
{
|
|
[ContentTypeWriter]
|
|
class NinePatchWriter : ContentTypeWriter<NinePatchData>
|
|
{
|
|
public override string GetRuntimeReader(TargetPlatform targetPlatform)
|
|
{
|
|
return "RecrownedAthenaeum.Pipeline, NinePatchDataReader";
|
|
}
|
|
|
|
protected override void Write(ContentWriter output, NinePatchData value)
|
|
{
|
|
output.Write(JsonConvert.SerializeObject(value));
|
|
}
|
|
}
|
|
}
|