18 lines
624 B
C#
18 lines
624 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using Newtonsoft.Json;
|
|
using RecrownedAthenaeum.Serializable;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|