Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Xna.Framework.Content.Pipeline;
- using System.IO;
- using TInput = System.String;
- namespace Psiren.ContentPipelineExtensions.AsepriteModel
- {
- [ContentImporter(".json", DisplayName = "Aseprite Definition Importer", DefaultProcessor = "AsepriteModelProcessor")]
- public class AsepriteModelImporter : ContentImporter<TInput>
- {
- public override TInput Import(string filename, ContentImporterContext context)
- {
- // Read the json from the file and return it
- return File.ReadAllText(filename);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement