// InitValue.cpp: implementation of the CInitValue class. // ////////////////////////////////////////////////////////////////////// #include #include "InitValue.h" #include "BaseDataDefine.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CInitValue::CInitValue() { m_nAdapter=m_nDevice=m_nMode=0; m_CharShadow=m_MapShadow=m_BuildShadow=0; m_TerrainDetail=m_CharDetail=m_ViewRange=0; m_WaterReflection=m_Lensflare=m_TreeDetail=0; } CInitValue::~CInitValue() { } void CInitValue::Save() { FILE *fp=fopen(INITVALUEFILE,"wb"); fwrite(this,sizeof(*this),1,fp); fclose(fp); } void CInitValue::Load() { FILE *fp=fopen(INITVALUEFILE,"rb"); fread(this,sizeof(*this),1,fp); fclose(fp); } void CInitValue::Init() { }