ConsoleComponent.cs 816 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. namespace ET
  4. {
  5. public static class ConsoleMode
  6. {
  7. public const string ReloadDll = "R";
  8. public const string ReloadConfig = "C";
  9. public const string ShowMemory = "M";
  10. public const string Repl = "Repl";
  11. public const string Debugger = "Debugger";
  12. public const string CreateRobot = "CreateRobot";
  13. public const string Robot = "Robot";
  14. public const string A = "A";
  15. public const string B = "B";
  16. public const string Words = "Words";
  17. }
  18. public class ConsoleComponent: Entity, IAwake, ILoad
  19. {
  20. public CancellationTokenSource CancellationTokenSource;
  21. public Dictionary<string, IConsoleHandler> Handlers = new Dictionary<string, IConsoleHandler>();
  22. }
  23. }