2018-12-07 08:22:15 +00:00
|
|
|
|
using RecrownedAthenaeum.Tools.CommandProcessor;
|
2018-12-08 22:26:40 +00:00
|
|
|
|
using RecrownedAthenaeum.Tools.TextureAtlasTools;
|
2018-12-05 21:44:26 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Reflection;
|
2018-12-09 20:09:40 +00:00
|
|
|
|
using System.Text;
|
2018-12-05 21:44:26 +00:00
|
|
|
|
|
2018-12-07 08:22:15 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Tools
|
2018-12-05 21:44:26 +00:00
|
|
|
|
{
|
2018-12-07 08:27:34 +00:00
|
|
|
|
internal class Tools
|
2018-12-05 21:44:26 +00:00
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
CommandEngine ce = new CommandEngine();
|
2018-12-09 06:51:33 +00:00
|
|
|
|
ConsoleUtilities.WriteWrappedLine("Recrowned Athenaeum Console Tools version " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
|
|
|
|
|
ConsoleUtilities.WriteWrappedLine("Type \"help\" for help.");
|
|
|
|
|
|
|
|
|
|
ce.commands.Add(new HelpCommand(ce));
|
|
|
|
|
ce.commands.Add(new TexturePackerCommand());
|
|
|
|
|
ce.commands.Add(new StopCommand(ce));
|
|
|
|
|
ce.commands.Add(new TestCommand());
|
2018-12-09 20:09:40 +00:00
|
|
|
|
|
|
|
|
|
if (args != null)
|
|
|
|
|
{
|
|
|
|
|
ConsoleUtilities.WriteWrappedLine("Executing as one time use.");
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
for (int i = 0; i < args.Length; i++) sb.Append(args[i] + ' ');
|
|
|
|
|
ce.Process(sb.ToString().Trim());
|
|
|
|
|
} else
|
|
|
|
|
{
|
|
|
|
|
ce.Run();
|
|
|
|
|
}
|
2018-12-05 21:44:26 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|