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:
46
GameTools/GLOBALSCRIPT/Item/ItemFactory.h
Normal file
46
GameTools/GLOBALSCRIPT/Item/ItemFactory.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef _ITEM_FACTORY_H_
|
||||
#define _ITEM_FACTORY_H_
|
||||
|
||||
#include <Pattern/Singleton.h>
|
||||
|
||||
namespace Item
|
||||
{
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
class CItem;
|
||||
struct ItemInfo;
|
||||
|
||||
#pragma pack(8)
|
||||
|
||||
class CItemFactory : public CSingleton<CItemFactory>
|
||||
{
|
||||
public:
|
||||
|
||||
inline unsigned __int64 GetItemUID() { return m_nCurrentUID; }
|
||||
inline void SetItemUID(unsigned __int64 nCurrentUID) { m_nCurrentUID = nCurrentUID; }
|
||||
|
||||
// Desc : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>⺻ <20>ɷ<EFBFBD>ġ)
|
||||
CItem* CreateItem(const ItemInfo& itemInfo);
|
||||
|
||||
// Desc : <20><><EFBFBD><EFBFBD> ID<49><44> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>⺻ <20>ɷ<EFBFBD>ġ)
|
||||
CItem* CreateItem(unsigned short usProtoTypeID);
|
||||
|
||||
// Desc : SerializeOut<75><74> <20><><EFBFBD>۷<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
// In : <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
// Out : (Return)<29><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, nParseLength_InOut - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
CItem* CreateItem(const char* lpSerializedItem_In, size_t& nParseLength_InOut);
|
||||
|
||||
~CItemFactory();
|
||||
|
||||
private:
|
||||
|
||||
CItemFactory();
|
||||
|
||||
unsigned __int64 m_nCurrentUID;
|
||||
|
||||
static CItemFactory ms_this;
|
||||
};
|
||||
|
||||
#pragma pack()
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user