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>
This commit is contained in:
2025-11-29 20:17:20 +09:00
parent 5d3cd64a25
commit dd97ddec92
11602 changed files with 1446576 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
#ifndef _RYL_DBAGENT_CASTLE_DB_MANAGER_H_
#define _RYL_DBAGENT_CASTLE_DB_MANAGER_H_
#pragma once
#include <map>
#include <Network/Packet/PacketStruct/CastlePacket.h>
#include <Creature/CreatureStructure.h>
#include <boost/pool/pool.hpp>
#include <boost/pool/pool_alloc.hpp>
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
class CDBComponent;
class CSendStream;
class CSiegeObjectDB;
class CSiegeObjectDBMgr;
namespace Castle
{
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
class CCastleDB;
class CCastleDBMgr
{
public:
static CCastleDBMgr& GetInstance();
// <CastleID, lpCastle>
typedef std::map<unsigned long, CCastleDB*, std::less<unsigned long>,
boost::fast_pool_allocator<std::pair<unsigned long, CCastleDB*> > > CastleMap;
bool Initialize(CDBComponent& DBComponent);
void Destroy();
void CheckEnableSiegeForAllCastle(bool bIsSiegeTime);
void UpdateSiegeCount();
void DestroyAllCastleArms();
void CloseCastleGate();
void OpenCastleGate();
CCastleDB* GetCastle(unsigned long dwCastleID);
void GetCastleSiegeInfo(CastleSiegeInfo* lpCastleSiegeInfo, unsigned char& cNum, unsigned short& wSize);
// GameServer <20><><EFBFBD><EFBFBD> Send <20>Լ<EFBFBD>
void SendCastleInfo(CSendStream& SendStream, unsigned char cZone, unsigned char cChannel);
private:
CCastleDBMgr();
~CCastleDBMgr();
bool ReadCastleInfoDB();
bool ReadCastleTaxInfoDB();
bool ReadCastleMineralInfoDB();
CCastleDB* CreateCastle(const CastleInfoDB& CastleInfo); // DB <20><><EFBFBD><EFBFBD> <20>о<EFBFBD><D0BE>ͼ<EFBFBD> <20><><EFBFBD><EFBFBD>
bool SerializeOut(CCastleDB* lpCastle_In, char* lpBuffer_Out,
unsigned short& wBufferSize_Out, unsigned char& cDefensiveArmsNum_Out);
CCastleDB* CreateCastleDB(const CastleInfoDB& CastleInfo);
void DeleteCastleDB(CCastleDB* lpCastleDB);
CDBComponent* m_lpDBComponent;
boost::pool<> m_CastlePool;
CastleMap m_CastleMap;
};
};
#endif // _CASTLE_MANAGER_H_