summaryrefslogtreecommitdiff
path: root/hammer/saveinfo.h
blob: e597084c4a6fa104c91b2317d22fdf1e00d626d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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