21 lines
603 B
C#
21 lines
603 B
C#
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
|||
|
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
|
|||
|
|
|||
|
namespace RecrownedAthenaeum.Pipeline.NinePatch
|
|||
|
{
|
|||
|
[ContentTypeWriter]
|
|||
|
class NinePatchWriter : ContentTypeWriter<byte[]>
|
|||
|
{
|
|||
|
public override string GetRuntimeReader(TargetPlatform targetPlatform)
|
|||
|
{
|
|||
|
return "RecrownedAthenaeum.Pipeline, NinePatchDataReader";
|
|||
|
}
|
|||
|
|
|||
|
protected override void Write(ContentWriter output, byte[] value)
|
|||
|
{
|
|||
|
output.Write(value.Length);
|
|||
|
output.Write(value);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|