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:
@@ -0,0 +1,66 @@
|
||||
#ifndef _RYL_DBAGENT_GIVE_ITEM_MGR_H_
|
||||
#define _RYL_DBAGENT_GIVE_ITEM_MGR_H_
|
||||
|
||||
#include <list>
|
||||
#include <ctime>
|
||||
#include <boost/pool/pool_alloc.hpp>
|
||||
|
||||
#include <DB/OleDB.h>
|
||||
#include <Network/Packet/PacketStruct/CharAdminPacket.h>
|
||||
|
||||
#ifdef AUTH_MY
|
||||
#include "NFAuthClient/AuthClient.h"
|
||||
#endif
|
||||
|
||||
// forward decl.
|
||||
class CDBComponent;
|
||||
|
||||
|
||||
// Ư<><C6AF> ij<><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ӽ<EFBFBD> <20>κ<EFBFBD><CEBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>־<EFBFBD> <20>ִ<EFBFBD> Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD>̴<EFBFBD>.
|
||||
class CGiveItemMgr
|
||||
{
|
||||
public:
|
||||
|
||||
static CGiveItemMgr& GetInstance();
|
||||
|
||||
void SetDBComponent(CDBComponent& DBComponent);
|
||||
void CheckGiveItem();
|
||||
|
||||
void ReadGiveInfo();
|
||||
bool UpdateItemSerial(unsigned long dwCreateID, unsigned __int64 dwItemSerial);
|
||||
|
||||
#ifdef AUTH_MY
|
||||
bool UpdateBuyItemInfo();
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
// first : <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
// second : <20><>Ʈ<EFBFBD><C6AE>ũ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>. 0<≯<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD>)
|
||||
typedef std::pair<GiveItemInfo, unsigned long> GiveItem;
|
||||
|
||||
typedef std::map<unsigned long, GiveItem, std::less<unsigned long>,
|
||||
boost::fast_pool_allocator< std::pair<unsigned long, GiveItem> > > GiveItemMap;
|
||||
|
||||
CGiveItemMgr();
|
||||
~CGiveItemMgr();
|
||||
|
||||
bool UpdateItemSerial(GiveItemMap::iterator pos,
|
||||
GiveItemMap::iterator& NextPos, unsigned __int64 dwItemSerial);
|
||||
|
||||
bool SetItem(char* szData, unsigned long& dwDataSize_InOut,
|
||||
unsigned long dwMaxDataSize, GiveItemInfo& giveItemInfo,
|
||||
unsigned long dwMaxItemNum, unsigned __int64& dwItemUID);
|
||||
|
||||
CDBComponent* m_lpDBComponent;
|
||||
GiveItemMap m_GiveItemMap;
|
||||
OleDB::PARAM_INFO m_UpdateParamInfo;
|
||||
|
||||
#ifdef AUTH_MY
|
||||
std::list<NFITEMINFO> m_NFItemInfo;
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user