17 lines
574 B
C#
17 lines
574 B
C#
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
|||
|
using Newtonsoft.Json;
|
|||
|
using RecrownedGTK.Data;
|
|||
|
using System.IO;
|
|||
|
|
|||
|
namespace RecrownedGTK.Pipeline.NinePatch
|
|||
|
{
|
|||
|
[ContentImporter(".9p", DisplayName = "Nine Patch Importer - RecrownedGTK", DefaultProcessor = "NinePatchProcessor")]
|
|||
|
internal class NinePatchImporter : ContentImporter<NinePatchData>
|
|||
|
{
|
|||
|
public override NinePatchData Import(string filename, ContentImporterContext context)
|
|||
|
{
|
|||
|
return JsonConvert.DeserializeObject<NinePatchData>(File.ReadAllText(filename));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|