summaryrefslogtreecommitdiff
path: root/hammer/saveinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'hammer/saveinfo.h')
-rw-r--r--hammer/saveinfo.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/hammer/saveinfo.h b/hammer/saveinfo.h
new file mode 100644
index 0000000..e597084
--- /dev/null
+++ b/hammer/saveinfo.h
@@ -0,0 +1,54 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Holds information relevant to saving the document, such as the
+// rules for which objects to save.
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef SAVEINFO_H
+#define SAVEINFO_H
+#pragma once
+
+
+#include "ChunkFile.h"
+
+
+class CMapClass;
+
+
+class CSaveInfo
+{
+ public:
+
+ inline CSaveInfo(void);
+ inline void SetVisiblesOnly(bool bVisiblesOnly);
+
+ bool ShouldSaveObject(CMapClass *pObject);
+
+ protected:
+
+ bool m_bVisiblesOnly;
+};
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Constructor.
+//-----------------------------------------------------------------------------
+CSaveInfo::CSaveInfo(void)
+{
+ m_bVisiblesOnly = false;
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : bVisiblesOnly -
+//-----------------------------------------------------------------------------
+void CSaveInfo::SetVisiblesOnly(bool bVisiblesOnly)
+{
+ m_bVisiblesOnly = bVisiblesOnly;
+}
+
+
+#endif // SAVEINFO_H