41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using TeaBox.Macros;
|
|
|
|
namespace JDSongConverter.Tasks
|
|
{
|
|
/// <summary>
|
|
/// Creates a new map from a template
|
|
/// </summary>
|
|
class CreateMapFromTemplateTask : Task
|
|
{
|
|
public override string Name
|
|
{
|
|
get { return "Create map from template"; }
|
|
set { }
|
|
}
|
|
|
|
public override string ProgressText
|
|
{
|
|
get { return "Creating map from template"; }
|
|
}
|
|
|
|
public override TaskResult Process(IExecutionContext executionContext)
|
|
{
|
|
//TODO
|
|
//var creationScope = new MapCreationScope(MapCreationScope.Template.Classic)
|
|
//{
|
|
// MapName = Context.Song.Name,
|
|
// OutputFolder = Context.OutputMap.Folder.Parent.Relative,
|
|
// NumberCoach = (UAF.Serialization.JD_SongDescTemplate.NumCoach_Enum) Context.Song.PlayerCount,
|
|
// OriginalJDVersion = Context.Song.Version.WithoutJdPrefix()
|
|
//};
|
|
//var mapCreationOptions = new MapCreationOptions
|
|
//{
|
|
// OpenFolderOnComplete = false
|
|
//};
|
|
|
|
//MapCreationMacros.CreateMap(creationScope, mapCreationOptions);
|
|
|
|
return TaskResult.Ok;
|
|
}
|
|
}
|
|
}
|