예제 #1
0
 public static void Initialize(BaseServicesDispatcher servicesDispatcher,
                               TriggerManager triggerManager,
                               CommandManager commandManager,
                               INetwork network,
                               IChiConsole console,
                               PythonEngine pythonEngine,
                               KeyManager keyManager,
                               HiliteManager hiliteManager)
 {
     s_servicesDispatcher = servicesDispatcher;
     s_triggerManager     = triggerManager;
     s_commandManager     = commandManager;
     s_network            = network;
     s_console            = console;
     s_pythonEngine       = pythonEngine;
     s_keyManager         = keyManager;
     s_hiliteManager      = hiliteManager;
 }
예제 #2
0
        public CommandManager(BaseServicesDispatcher dispatcher)
        {
            dispatcher.RegisterInputHandler(HandleInput);

            AddCommand("help", HelpCmd, "list all commands or display help for a single command", "");
        }
예제 #3
0
 public KeyManager(BaseServicesDispatcher dispatcher)
 {
     dispatcher.RegisterKeyDownHandler(HandleKey);
 }
예제 #4
0
 public TriggerManager(BaseServicesDispatcher dispatcher)
 {
     dispatcher.RegisterMessageHandler(HandleColorMessage);
 }