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