* Allow the use of referenced trainer / vendor data.
* This will reduce the size of the trainer / vendor tables a LOT. * Current tables will continue to work as/is until the refs can be made. * Huge thanks to XTElite1 * Credits for patch to Cycrow --HG-- branch : trunk
This commit is contained in:
@@ -429,6 +429,7 @@ class ObjectMgr
|
||||
Player* GetPlayer(uint64 guid) const { return ObjectAccessor::FindPlayer(guid); }
|
||||
|
||||
static GameObjectInfo const *GetGameObjectInfo(uint32 id) { return sGOStorage.LookupEntry<GameObjectInfo>(id); }
|
||||
int LoadReferenceVendor(int32 vendor, int32 item_id, std::set<uint32> *skip_vendors);
|
||||
|
||||
void LoadGameobjectInfo();
|
||||
void AddGameobjectInfo(GameObjectInfo *goinfo);
|
||||
@@ -691,6 +692,8 @@ class ObjectMgr
|
||||
|
||||
void LoadVendors();
|
||||
void LoadTrainerSpell();
|
||||
bool AddSpellToTrainer(int32 entry, int32 spell, Field *fields, std::set<uint32> *skip_trainers, std::set<uint32> *talentIds);
|
||||
int LoadReferenceTrainer(int32 trainer, int32 spell, std::set<uint32> *skip_trainers, std::set<uint32> *talentIds);
|
||||
void LoadGMTickets();
|
||||
|
||||
std::string GeneratePetName(uint32 entry);
|
||||
|
||||
Reference in New Issue
Block a user