18 lines
604 B
C#
18 lines
604 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Newtonsoft.Json;
|
|
using System.Text;
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.NinePatch
|
|
{
|
|
[ContentImporter(DisplayName = "Nine Patch - RecrownedAthenaeum")]
|
|
class NinePatchProcessor : ContentProcessor<string, NinePatchData>
|
|
{
|
|
public override NinePatchData Process(string input, ContentProcessorContext context)
|
|
{
|
|
NinePatchData ninePatchData = JsonConvert.DeserializeObject<NinePatchData>(input);
|
|
context.AddDependency(ninePatchData.textureName);
|
|
return ninePatchData;
|
|
}
|
|
}
|
|
}
|