DeveloperConsole.DeveloperConsole.PrintDebug C# (CSharp) 메소드

PrintDebug() 공개 메소드

Prints a debug line to the console if Debug is true
public PrintDebug ( string s ) : void
s string The message
리턴 void
        public void PrintDebug(string s)
        {
            if (Debug)
                PrintLine("[Debug] " + s,
                    Color.FromArgb(ConsoleSettings.TextAlpha, Color.LightGray.R, Color.LightGray.G, Color.LightGray.B));
        }

Usage Example

        private void OnConsoleAttached(DeveloperConsole dc)
        {
            Tick += OnTick;

            _player = Game.Player;

            _developerConsole  = dc;
            _commandDispatcher = dc.CommandDispatcher;

            RegisterDefaultCommands();

            dc.PrintDebug("DefaultCommands loaded successfully.");
        }
All Usage Examples Of DeveloperConsole.DeveloperConsole::PrintDebug