2012-10-31 03:05:40 +04:00
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
|
|
using TImport = System.String;
|
|
|
|
|
2013-12-13 15:01:43 +04:00
|
|
|
namespace CocosSharp.Content.Pipeline.Importers.TMX
|
2012-10-31 03:05:40 +04:00
|
|
|
{
|
2015-01-17 19:46:02 +03:00
|
|
|
[ContentImporter(".tmx",".TMX", DisplayName = "Tilemap Importer - CocosSharp", DefaultProcessor = "TMXProcessor")]
|
2012-10-31 03:05:40 +04:00
|
|
|
public class TMXImporter : ContentImporter<TImport>
|
|
|
|
{
|
|
|
|
public override TImport Import(string filename, ContentImporterContext context)
|
|
|
|
{
|
|
|
|
return File.ReadAllText(filename);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|