Files
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

47 lines
1.1 KiB
C++

#ifndef _RYL_DBAGENT_STATUE_DB_MANAGER_H_
#define _RYL_DBAGENT_STATUE_DB_MANAGER_H_
// 국가전 석상 DB 정보를 가지고 있는 객체
#pragma once
#include <map>
#include <Network/Packet/PacketStruct/CastlePacket.h>
// 전방 참조
class CDBComponent;
class CSendStream;
class CStatueDBMgr
{
public:
static CStatueDBMgr& GetInstance();
// <Key, StatueInfo*> : Key = (Index << 16) | (Channel)
typedef std::map<unsigned long, StatueInfoDB*> StatueMap;
bool Initialize(CDBComponent& DBComponent);
unsigned long CalcKeyValue(unsigned long dwIndex, unsigned char cChannel) const;
bool UpdateKID(unsigned long dwIndex, unsigned char cChannel, unsigned short wNewKID);
bool UpdateLostHP(unsigned long dwIndex, unsigned char cChannel, unsigned long dwLostHP);
// Send to gameserver
void SendStatueInfo(CSendStream& SendStream, unsigned char cChannel);
private:
CStatueDBMgr();
~CStatueDBMgr();
StatueInfoDB* CreateStatue( const StatueInfoDB& statueInfo ) ;
void ClearStatueMap() ;
CDBComponent* m_lpDBComponent;
StatueMap m_StatueMap;
};
#endif // _RYL_DBAGENT_STATUE_DB_MANAGER_H_