/* * Copyright (C) 2016+ AzerothCore , released under GNU AGPL v3 license, you may redistribute it * and/or modify it under version 3 of the License, or (at your option), any later version. */ #ifndef _PLAYERBOT_PLAYERBOTSPELLCACHE_H #define _PLAYERBOT_PLAYERBOTSPELLCACHE_H #include "Playerbots.h" class PlayerbotSpellCache { public: static PlayerbotSpellCache* Instance() { static PlayerbotSpellCache instance; return &instance; } void Initialize(); // call once on startup SkillLineAbilityEntry const* GetSkillLine(uint32 spellId) const; bool IsItemBuyable(uint32 itemId) const; private: PlayerbotSpellCache() = default; std::map skillSpells; std::set vendorItems; }; #define sPlayerbotSpellCache PlayerbotSpellCache::Instance() #endif