Files
Client/Server/RylServerProject/RylDBAgentServer/Map/FieldMap/MineralVeinDBMgr.h
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

41 lines
1.1 KiB
C++

#ifndef __RYL_DBAGENT_MINERAL_VEIN_MANAGER_H__
#define __RYL_DBAGENT_MINERAL_VEIN_MANAGER_H__
#pragma once
#include <map>
// 전방참조
class CSendStream;
class CDBComponent;
// 광맥 관리 클래스 (다른 정보는 없고, 지력의 값만 관리를 한다.)
class CMineralVeinDBMgr
{
public:
static CMineralVeinDBMgr& GetInstance();
typedef std::map<unsigned long, unsigned long> FertilityInfoMap; // < VeinColor, Fertility >, Fertility Info Per Zone
typedef std::map<unsigned long, FertilityInfoMap> FertilityZoneMap; // < ZoneChannel, FertilityInfo >, Fertility Info Of All Zone, Channel
// ZoneChannel : Zone (16bit), Channel (16bit)
bool Initialize(CDBComponent& DBComponent);
void Destroy();
bool SendFertilityInfo(CSendStream& SendStream, unsigned char cZone, unsigned char cChannel);
bool UpdateFertilityInfo(unsigned char cZone, unsigned char cChannel, unsigned short wNum, unsigned long* lpFertilityInfo);
private:
CMineralVeinDBMgr();
~CMineralVeinDBMgr();
bool ReadFertilityDB();
FertilityZoneMap m_mapFertility;
CDBComponent* m_lpDBComponent;
};
#endif // __RYL_DBAGENT_MINERAL_VEIN_MANAGER_H__