Counter Strike : Global Offensive Source Code
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.

56 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Handles parsing and routing of shell commands to their handlers.
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SHELL_H
  8. #define SHELL_H
  9. #pragma once
  10. class CMapDoc;
  11. struct ShellDispatchTable_t;
  12. class CShell
  13. {
  14. public:
  15. CShell(void);
  16. ~CShell(void);
  17. void SetDocument(CMapDoc *pDoc);
  18. bool RunCommand(const char *pszCommand);
  19. private:
  20. //
  21. // Shell command handlers.
  22. //
  23. bool BeginSession(const char *pszCommand, const char *pszArguments);
  24. bool CheckMapVersion(const char *pszCommand, const char *pszArguments);
  25. bool EndSession(const char *pszCommand, const char *pszArguments);
  26. bool EntityCreate(const char *pszCommand, const char *pszArguments);
  27. bool EntityDelete(const char *pszCommand, const char *pszArguments);
  28. bool EntitySetKeyValue(const char *pszCommand, const char *pszArguments);
  29. bool EntityRotateIncremental(const char *pszCommand, const char *pszArguments);
  30. bool NodeCreate(const char *pszCommand, const char *pszArguments);
  31. bool NodeDelete(const char *pszCommand, const char *pszArguments);
  32. bool NodeLinkCreate(const char *pszCommand, const char *pszArguments);
  33. bool NodeLinkDelete(const char *pszCommand, const char *pszArguments);
  34. bool ReleaseVideoMemory(const char *pszCommand, const char *pszArguments);
  35. bool GrabVideoMemory(const char *pszCommand, const char *pszArguments);
  36. //
  37. // Utility functions.
  38. //
  39. bool DoVersionCheck(const char *pszArguments);
  40. static ShellDispatchTable_t m_DispatchTable[];
  41. CMapDoc *m_pDoc;
  42. };
  43. #endif // SHELL_H