Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
963 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef DEBUGCONSOLE_INTERFACE_H
  8. #define DEBUGCONSOLE_INTERFACE_H
  9. #pragma once
  10. #include "interface.h"
  11. //-----------------------------------------------------------------------------
  12. // Purpose: Debugging console interface
  13. //-----------------------------------------------------------------------------
  14. class IDebugConsole : public IBaseInterface
  15. {
  16. public:
  17. virtual void Initialize( const char *consoleName, int logLevel ) = 0;
  18. virtual void Print( int severity, PRINTF_FORMAT_STRING const char *msgDescriptor, ... ) = 0;
  19. // gets a line of command input
  20. // returns true if anything returned, false otherwise
  21. virtual bool GetInput(char *buffer, int bufferSize) = 0;
  22. };
  23. #define DEBUGCONSOLE_INTERFACE_VERSION "DebugConsole001"
  24. #endif // DEBUGCONSOLE_INTERFACE_H