static void Main(string[] args) { exec = new Executer(); exec.Initialize(true, ""); exec.AttachModule(Assembly.GetExecutingAssembly()); Interactor = new Interactor(); Interactor.Logger = new ConsoleLogger(); Interactor.Simulate(); for (; ;) { exec.CommandHandler(Console.ReadLine()); } //Task.Delay(-1).Wait(); }
static void Main(string[] args) { exec = new Executer(true, "Modules"); exec.AttachModulesFromFolder(); Out(exec.MODController.Modules.Count.ToString(), ""); AEvents.OutputInfo += Info; AEvents.OutputError += Error; AEvents.OutputDebug += Debug; AEvents.OnCommandSleep += OnSleep; AEvents.OnCommandEnded += OnEnded; while (true) { exec.CommandHandler(Console.ReadLine()); } }