2012-09-18 05:53:08 +00:00
|
|
|
|
#region Using Statements
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
// This file is part of the ANX.Framework created by the
|
2012-08-16 07:30:59 +00:00
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
|
|
|
|
|
|
namespace ANX.Framework.Content.Pipeline
|
|
|
|
|
{
|
|
|
|
|
public abstract class ContentImporter<T> : IContentImporter
|
|
|
|
|
{
|
|
|
|
|
protected ContentImporter()
|
|
|
|
|
{
|
2012-08-21 08:17:17 +00:00
|
|
|
|
// nothing to do here
|
2012-08-16 07:30:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-08-16 08:17:47 +00:00
|
|
|
|
public abstract T Import(string filename, ContentImporterContext context);
|
|
|
|
|
|
2012-09-18 05:53:08 +00:00
|
|
|
|
public Type OutputType
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return typeof(T);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-21 08:17:17 +00:00
|
|
|
|
object IContentImporter.Import(string filename, ContentImporterContext context)
|
2012-08-16 07:30:59 +00:00
|
|
|
|
{
|
2012-08-21 08:17:17 +00:00
|
|
|
|
return this.Import(filename, context);
|
2012-08-16 07:30:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|