Changeset 18 for trunk/src/game/ObjectMgr.h
- Timestamp:
- 11/19/08 13:23:29 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/ObjectMgr.h
r9 r18 229 229 typedef HM_NAMESPACE::hash_map<uint32, uint32> CacheNpcTextIdMap; 230 230 231 // Vendors 232 struct VendorItem 233 { 234 uint32 item; 235 uint32 maxcount; 236 uint32 incrtime; 237 uint32 ExtendedCost; 238 }; 239 typedef std::vector<VendorItem*> VendorItemList; 240 241 typedef HM_NAMESPACE::hash_map<uint32, VendorItemList> CacheVendorItemMap; 242 231 232 typedef HM_NAMESPACE::hash_map<uint32, VendorItemData> CacheVendorItemMap; 243 233 typedef HM_NAMESPACE::hash_map<uint32, TrainerSpellData> CacheTrainerSpellMap; 244 234 … … 258 248 259 249 bool normalizePlayerName(std::string& name); 250 251 struct MANGOS_DLL_SPEC LanguageDesc 252 { 253 Language lang_id; 254 uint32 spell_id; 255 uint32 skill_id; 256 }; 257 258 extern LanguageDesc lang_description[LANGUAGES_COUNT]; 259 MANGOS_DLL_SPEC LanguageDesc const* GetLanguageDescByID(uint32 lang); 260 260 261 261 class PlayerDumpReader; … … 733 733 } 734 734 735 VendorItem Listconst* GetNpcVendorItemList(uint32 entry) const735 VendorItemData const* GetNpcVendorItemList(uint32 entry) const 736 736 { 737 737 CacheVendorItemMap::const_iterator iter = m_mCacheVendorItemMap.find(entry); … … 741 741 return &iter->second; 742 742 } 743 void AddVendorItem(uint32 entry,uint32 item, uint32 maxcount, uint32 incrtime, uint32 ExtendedCost); 744 bool RemoveVendorItem(uint32 entry,uint32 item); 745 bool IsVendorItemValid( uint32 vendor_entry, uint32 item, uint32 maxcount, uint32 ptime, uint32 ExtendedCost, Player* pl = NULL ) const; 743 746 protected: 744 747 uint32 m_auctionid;