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

76 lines
2.3 KiB
C++

#ifndef _RYL_DBAGENT_PARTY_DB_MGR_H_
#define _RYL_DBAGENT_PARTY_DB_MGR_H_
#pragma once
#include <map>
#include <boost/pool/pool_alloc.hpp>
#include <boost/pool/pool.hpp>
// forward decl.
class CDBComponent;
class CSendStream;
namespace DBAgent
{
// forward delc.
class CPartyDBInfo;
class CPartyDBMgr
{
public:
static CPartyDBMgr& GetInstance();
CPartyDBInfo* OpenParty(CDBComponent& DBComponent, unsigned long dwPartyID);
bool CloseParty(CDBComponent& DBComponent, unsigned long dwPartyID);
CPartyDBInfo* CreateParty(CDBComponent& DBComponent, unsigned long dwLeaderID, char cLeaderLevel, unsigned short wLeaderClass, unsigned long dwLeaderGID,
unsigned long dwMemberID, char cMemberLevel, unsigned short wMemberClass, unsigned long dwMemberGID);
bool DestoryParty(CDBComponent& DBComponent, unsigned long dwPartyID);
bool InsertPartyMember(CDBComponent& DBComponent, unsigned long dwPartyID, unsigned long dwCharID, unsigned long dwGID,
unsigned short wClass, char cLevel);
bool DeletePartyMember(CDBComponent& DBComponent, unsigned long dwPartyID,
unsigned long dwCharID, unsigned long dwReference);
bool AutoRoutingOn(CDBComponent& DBComponent, unsigned long dwPartyID, unsigned long dwCharID);
bool AutoRoutingOff(CDBComponent& DBComponent, unsigned long dwPartyID, unsigned long dwCharID);
bool InsertPartyMap(unsigned long dwPartyID, CPartyDBInfo* lpParty);
bool DeletePartyMap(unsigned long dwPartyID);
CPartyDBInfo* FindPartyMap(unsigned long dwPartyID_In);
void LoginPartyMember(CPartyDBInfo* lpParty, unsigned long dwUserID, unsigned long dwCharID, unsigned long dwGID,
unsigned short wClass, unsigned long dwServerID, char cLevel);
void LogoutPartyMember(CDBComponent& DBComponent, CPartyDBInfo* lpParty, unsigned long dwCharID);
void SendToGameServerPartyData(CSendStream& SendStream);
private:
CPartyDBMgr();
~CPartyDBMgr();
CPartyDBInfo* CreatePartyDBInfo(unsigned long dwPID);
void DeletePartyDBInfo(CPartyDBInfo* lpPartyDBInfo);
enum Const
{
MIN_MEMBER_NUM = 2
};
typedef std::map<unsigned long, CPartyDBInfo*, std::less<unsigned long>,
boost::fast_pool_allocator<std::pair<unsigned long, CPartyDBInfo*> > > PartyMap;
PartyMap m_PartyMap;
boost::pool<> m_PartyDBPool;
};
}
#endif