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.

64 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // The copyright to the contents herein is the property of Valve, L.L.C.
  4. // The contents may be used and/or copied only with the written permission of
  5. // Valve, L.L.C., or in accordance with the terms and conditions stipulated in
  6. // the agreement/contract under which the contents have been supplied.
  7. //
  8. // $Header: $
  9. // $NoKeywords: $
  10. //
  11. // An RTS!
  12. //=============================================================================
  13. #ifndef LEGION_H
  14. #define LEGION_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "appframework/vguimatsysapp.h"
  19. #include "tier1/convar.h"
  20. //-----------------------------------------------------------------------------
  21. // Forward declarations
  22. //-----------------------------------------------------------------------------
  23. class CLegionApp;
  24. //-----------------------------------------------------------------------------
  25. // Singleton interfaces
  26. //-----------------------------------------------------------------------------
  27. extern CLegionApp *g_pApp;
  28. //-----------------------------------------------------------------------------
  29. // The application object
  30. //-----------------------------------------------------------------------------
  31. class CLegionApp : public CVguiMatSysApp, public IConCommandBaseAccessor
  32. {
  33. typedef CVguiMatSysApp BaseClass;
  34. public:
  35. // Methods of IApplication
  36. virtual bool Create();
  37. virtual bool PreInit( );
  38. virtual int Main();
  39. virtual void PostShutdown( );
  40. virtual const char *GetAppName() { return "Legion"; }
  41. // Methods of IConCommandBaseAccessor
  42. virtual bool RegisterConCommandBase( ConCommandBase *pCommand );
  43. virtual void UnregisterConCommandBase( ConCommandBase *pCommand );
  44. // Promote to public
  45. void AppPumpMessages() { BaseClass::AppPumpMessages(); }
  46. private:
  47. };
  48. #endif // LEGION_H