feat: port native AVA2 chest preview and CG235 pickup flows

This commit is contained in:
shen
2026-10-18 04:01:56 -07:00
parent b61140b8f4
commit 83809631ed
24 changed files with 872 additions and 614 deletions
+10 -1
View File
@@ -50,7 +50,16 @@ class CItemManager : public CSingleton<CItemManager>
bool LoadItemTable(const char* c_szFileName);
CItemData * MakeItemData(DWORD dwIndex);
protected:
public:
struct SDropItemInfo { DWORD dwDropVnum; DWORD iCount; };
typedef std::vector<SDropItemInfo> TChestDropItemInfoVec;
void ClearChestDrop() { m_chestDrops.clear(); }
void LoadChestDropFromServer(DWORD vnum,const TChestDropItemInfoVec& rows) { m_chestDrops[vnum]=rows; }
const TChestDropItemInfoVec* GetItemDropInfoVec(DWORD vnum) const {
auto i=m_chestDrops.find(vnum); return i==m_chestDrops.end()?nullptr:&i->second;
}
protected:
std::map<DWORD,TChestDropItemInfoVec> m_chestDrops;
TItemMap m_ItemMap;
std::vector<CItemData*> m_vec_ItemRange;
CItemData * m_pSelectedItemData;