2018-12-23 17:04:11 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace RecrownedAthenaeum.Pipeline.NinePatch
|
|
|
|
|
{
|
2019-01-13 23:09:27 +00:00
|
|
|
|
[ContentImporter(".9p", DisplayName = "Nine Patch Importer", DefaultProcessor = "NinePatchProcessor")]
|
2019-01-14 04:05:34 +00:00
|
|
|
|
internal class NinePatchImporter : ContentImporter<string>
|
2018-12-23 17:04:11 +00:00
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
public override string Import(string filename, ContentImporterContext context)
|
2018-12-23 17:04:11 +00:00
|
|
|
|
{
|
2019-01-14 04:05:34 +00:00
|
|
|
|
return File.ReadAllText(filename);
|
2018-12-23 17:04:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|