2018-12-05 01:19:31 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
|
|
|
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
|
|
|
|
|
|
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
|
|
|
{
|
2018-12-05 08:28:09 +00:00
|
|
|
|
[ContentTypeWriter]
|
|
|
|
|
class TextureAtlasWriter : ContentTypeWriter<byte[]>
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
|
|
|
|
public override string GetRuntimeReader(TargetPlatform targetPlatform)
|
|
|
|
|
{
|
2018-12-05 08:28:09 +00:00
|
|
|
|
return "RecrownedAthenaeum.Pipeline, TextureAtlasDataReader";
|
2018-12-05 01:19:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-05 08:28:09 +00:00
|
|
|
|
protected override void Write(ContentWriter output, byte[] value)
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2018-12-05 08:28:09 +00:00
|
|
|
|
output.Write(value.Length);
|
|
|
|
|
output.Write(value);
|
2018-12-05 01:19:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|