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.

58 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DEVSHOTGENERATOR_H
  7. #define DEVSHOTGENERATOR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "filesystem.h"
  12. #include "utlvector.h"
  13. #include "utlsymbol.h"
  14. #include "MapReslistGenerator.h"
  15. // initialization
  16. void DevShotGenerator_Init();
  17. void DevShotGenerator_Shutdown();
  18. void DevShotGenerator_BuildMapList();
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Takes development screenshots at camera positions over a set of levels
  21. //-----------------------------------------------------------------------------
  22. class CDevShotGenerator
  23. {
  24. public:
  25. CDevShotGenerator();
  26. // initializes the object to enable devshot generation
  27. void EnableDevShotGeneration( bool usemaplistfile );
  28. // starts the dev shot generation (starts cycling maps)
  29. void StartDevShotGeneration();
  30. void BuildMapList();
  31. void NextMap();
  32. void Shutdown();
  33. // returns true if reslist generation is enabled
  34. bool IsEnabled() { return m_bDevShotsEnabled; }
  35. private:
  36. bool m_bDevShotsEnabled;
  37. int m_iCurrentMap;
  38. bool m_bUsingMapList;
  39. // list of all maps to scan
  40. CUtlVector<maplist_map_t> m_Maps;
  41. };
  42. // singleton accessor
  43. CDevShotGenerator &DevShotGenerator();
  44. #endif // DEVSHOTGENERATOR_H