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.

54 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Holds information relevant to saving the document, such as the
  4. // rules for which objects to save.
  5. //
  6. // $NoKeywords: $
  7. //=============================================================================//
  8. #ifndef SAVEINFO_H
  9. #define SAVEINFO_H
  10. #pragma once
  11. #include "ChunkFile.h"
  12. class CMapClass;
  13. class CSaveInfo
  14. {
  15. public:
  16. inline CSaveInfo(void);
  17. inline void SetVisiblesOnly(bool bVisiblesOnly);
  18. bool ShouldSaveObject(CMapClass *pObject);
  19. protected:
  20. bool m_bVisiblesOnly;
  21. };
  22. //-----------------------------------------------------------------------------
  23. // Purpose: Constructor.
  24. //-----------------------------------------------------------------------------
  25. CSaveInfo::CSaveInfo(void)
  26. {
  27. m_bVisiblesOnly = false;
  28. }
  29. //-----------------------------------------------------------------------------
  30. // Purpose:
  31. // Input : bVisiblesOnly -
  32. //-----------------------------------------------------------------------------
  33. void CSaveInfo::SetVisiblesOnly(bool bVisiblesOnly)
  34. {
  35. m_bVisiblesOnly = bVisiblesOnly;
  36. }
  37. #endif // SAVEINFO_H