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.2 KiB

  1. //========= Copyright � 1996-2005, 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. class IMapEntity_SaveInfo_t : public CSaveInfo {};
  23. //-----------------------------------------------------------------------------
  24. // Purpose: Constructor.
  25. //-----------------------------------------------------------------------------
  26. CSaveInfo::CSaveInfo(void)
  27. {
  28. m_bVisiblesOnly = false;
  29. }
  30. //-----------------------------------------------------------------------------
  31. // Purpose:
  32. // Input : bVisiblesOnly -
  33. //-----------------------------------------------------------------------------
  34. void CSaveInfo::SetVisiblesOnly(bool bVisiblesOnly)
  35. {
  36. m_bVisiblesOnly = bVisiblesOnly;
  37. }
  38. #endif // SAVEINFO_H