23 lines
826 B
C#
23 lines
826 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
{
|
|
[ContentTypeWriter]
|
|
class TextureAtlasWriter : ContentTypeWriter<TextureAtlasProcessor.Package>
|
|
{
|
|
public override string GetRuntimeReader(TargetPlatform targetPlatform)
|
|
{
|
|
return "RecrownedAthenaeum.ContentReaders.TextureAtlasDataReader, RecrownedAthenaeum";
|
|
}
|
|
|
|
protected override void Write(ContentWriter output, TextureAtlasProcessor.Package value)
|
|
{
|
|
output.Write(value.textureBytes.Length);
|
|
output.Write(value.textureBytes);
|
|
output.Write(value.textureAtlasDataBytes.Length);
|
|
output.Write(value.textureAtlasDataBytes);
|
|
}
|
|
}
|
|
}
|