2018-12-23 17:04:11 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Content;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
2019-01-21 03:45:15 +00:00
|
|
|
|
namespace RecrownedAthenaeum.ContentReaders
|
2018-12-23 17:04:11 +00:00
|
|
|
|
{
|
2019-01-15 23:33:55 +00:00
|
|
|
|
class NinePatchDataReader : ContentTypeReader<SpecialTypes.NinePatch>
|
2018-12-23 17:04:11 +00:00
|
|
|
|
{
|
2019-01-15 23:33:55 +00:00
|
|
|
|
protected override SpecialTypes.NinePatch Read(ContentReader input, SpecialTypes.NinePatch existingInstance)
|
2018-12-23 17:04:11 +00:00
|
|
|
|
{
|
2019-01-21 05:06:56 +00:00
|
|
|
|
string serialized = input.ReadString();
|
2018-12-23 17:04:11 +00:00
|
|
|
|
|
2019-01-21 05:06:56 +00:00
|
|
|
|
return JsonConvert.DeserializeObject<SpecialTypes.NinePatch>(serialized);
|
2018-12-23 17:04:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|