25 lines
725 B
C#
25 lines
725 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO.Compression;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
|
{
|
|
[ContentProcessor(DisplayName = "Texture Atlas Processor")]
|
|
class TextureAtlasProcessor : ContentProcessor<TextureAtlasData, byte[]>
|
|
{
|
|
|
|
public override byte[] Process(TextureAtlasData input, ContentProcessorContext context)
|
|
{
|
|
string serialized = JsonConvert.SerializeObject(input);
|
|
return Encoding.UTF8.GetBytes(serialized);
|
|
}
|
|
}
|
|
}
|