ConsoleComponent.cs 730 B

1234567891011121314151617181920212223
  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. }
  15. [ComponentOf(typeof(Scene))]
  16. public class ConsoleComponent: Entity, IAwake, ILoad
  17. {
  18. public CancellationTokenSource CancellationTokenSource;
  19. public Dictionary<string, IConsoleHandler> Handlers = new Dictionary<string, IConsoleHandler>();
  20. }
  21. }