Advertisement
manbeardgames

AsepriteModelImporter

Sep 26th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using Microsoft.Xna.Framework.Content.Pipeline;
  2. using System.IO;
  3.  
  4. using TInput = System.String;
  5.  
  6. namespace Psiren.ContentPipelineExtensions.AsepriteModel
  7. {
  8.     [ContentImporter(".json", DisplayName = "Aseprite Definition Importer", DefaultProcessor = "AsepriteModelProcessor")]
  9.     public class AsepriteModelImporter : ContentImporter<TInput>
  10.     {
  11.         public override TInput Import(string filename, ContentImporterContext context)
  12.         {
  13.             //  Read the json from the file and return it
  14.             return File.ReadAllText(filename);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement