Ejemplo n.º 1
0
 public void ReloadModules()
 {
     foreach (var mod in Modules)
     {
         mod.ModuleInfo.ModuleDeinitialize(EXEC);
     }
     Modules.Clear();
     EXEC.CommandsHeap.Clear();
     EXEC.AttachModulesFromFolder();
 }
Ejemplo n.º 2
0
 private MainLogic()
 {
     Handler = new ServerHandler();
     Exec    = new Executer(true, "modules");
     Exec.AttachModulesFromFolder();
     AEvents.OnCommandEnded += (client) => {
         ServerEvents.Info?.Invoke($"Unlock readline! [{client.RemoteEndPoint}]");
         Handler.Server.Send(client, new Packet(BitConverter.GetBytes(false), "LCMD"));
     };
 }
Ejemplo n.º 3
0
 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());
     }
 }