DeveloperConsole.DeveloperConsole.DeveloperConsole C# (CSharp) Method

DeveloperConsole() public method

Creates the console
public DeveloperConsole ( ) : System
return System
        public DeveloperConsole()
        {
            InjectToGAC();

            Instance = this;

            Tick += OnTick;
            KeyDown += OnKeyDown;
            KeyUp += OnKeyUp;

            CommandDispatcher = new CommandDispatcher();
            ObjectSelector = new ObjectSelector();

            ShowConsole(false);

            PrintLine(
                "This is the developer console. To close, press the ' or F4 key on your keyboard. Run 'help' for a list of commands.");

            foreach (var s in RegisteredScripts) s.Value(this);
        }