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.

45 lines
1.2 KiB

  1. //===== Copyright � 1996-2009, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef MATCHEXT_SWARM_H
  7. #define MATCHEXT_SWARM_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "../mm_framework.h"
  12. #include "matchmaking/swarm/imatchext_swarm.h"
  13. class CMatchExtSwarm : public IMatchExtSwarm
  14. {
  15. // Methods of IMatchExtSwarm
  16. public:
  17. // Get server map information for the session settings
  18. virtual KeyValues * GetAllMissions();
  19. virtual KeyValues * GetMapInfo( KeyValues *pSettings, KeyValues **ppMissionInfo = NULL );
  20. virtual KeyValues * GetMapInfoByBspName( KeyValues *pSettings, char const *szBspMapName, KeyValues **ppMissionInfo = NULL );
  21. public:
  22. void Initialize();
  23. void DebugPrint();
  24. void ParseMissionFromFile( char const *szFile, bool bBuiltIn );
  25. void MakeGameModeCopy( char const *szGameMode, char const *szCopyName );
  26. public:
  27. CMatchExtSwarm();
  28. ~CMatchExtSwarm();
  29. private:
  30. KeyValues *m_pKeyValues;
  31. CUtlStringMap< KeyValues * > m_mapFilesLoaded;
  32. CUtlStringMap< KeyValues * > m_mapMissionsLoaded;
  33. };
  34. // Match extension singleton
  35. extern CMatchExtSwarm *g_pMatchExtSwarm;
  36. #endif // MATCHEXT_L4D_H