Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
745 B
C++
38 lines
745 B
C++
#pragma once
|
|
|
|
|
|
class CPMSetting
|
|
{
|
|
public:
|
|
|
|
CPMSetting();
|
|
virtual ~CPMSetting();
|
|
|
|
bool LoadSetting(LPCTSTR szSetupFileName);
|
|
bool LoadSetting() { return LoadSetting(GetSettingFileName()); }
|
|
bool SaveSetting();
|
|
|
|
LPCTSTR GetSettingFileName() const { return m_szSetupFileName.GetString(); }
|
|
|
|
bool GetSettingData(LPCTSTR szKey, CString& szValue);
|
|
void SetSettingData(LPCTSTR szKey, LPCTSTR szValue);
|
|
|
|
private:
|
|
|
|
CMapStringToString m_SetupDataMap;
|
|
CString m_szSetupFileName;
|
|
};
|
|
|
|
|
|
class CPMDefaultSetting : public CPMSetting
|
|
{
|
|
public:
|
|
|
|
static CPMSetting& GetInstance();
|
|
static LPCTSTR GetDefaultSettingName();
|
|
|
|
private:
|
|
|
|
CPMDefaultSetting() { }
|
|
virtual ~CPMDefaultSetting() { }
|
|
}; |