/* * Copyright (C) 2016+ AzerothCore , released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version. */ #ifndef _PLAYERBOT_PLAYERBOTTEXTMGR_H #define _PLAYERBOT_PLAYERBOTTEXTMGR_H #include "Common.h" #include #include class PlayerbotTextMgr { public: PlayerbotTextMgr() { }; virtual ~PlayerbotTextMgr() { }; static PlayerbotTextMgr* instance() { static PlayerbotTextMgr instance; return &instance; } std::string const Format(std::string const key, std::map placeholders); private: void LoadTemplates(); std::map> templates; }; #define sPlayerbotTextMgr PlayerbotTextMgr::instance() #endif