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
56 lines
1.2 KiB
//========= Copyright © 1996-2005, 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;
|
|
};
|
|
|
|
class IMapEntity_SaveInfo_t : public CSaveInfo {};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Constructor.
|
|
//-----------------------------------------------------------------------------
|
|
CSaveInfo::CSaveInfo(void)
|
|
{
|
|
m_bVisiblesOnly = false;
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
// Input : bVisiblesOnly -
|
|
//-----------------------------------------------------------------------------
|
|
void CSaveInfo::SetVisiblesOnly(bool bVisiblesOnly)
|
|
{
|
|
m_bVisiblesOnly = bVisiblesOnly;
|
|
}
|
|
|
|
|
|
#endif // SAVEINFO_H
|