diff options
Diffstat (limited to 'include/Chatbar.hpp')
-rw-r--r-- | include/Chatbar.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/Chatbar.hpp b/include/Chatbar.hpp index 6ae2190..27b57f9 100644 --- a/include/Chatbar.hpp +++ b/include/Chatbar.hpp @@ -6,6 +6,8 @@ #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Window/Event.hpp> #include <SFML/System/Clock.hpp> +#include <string> +#include <unordered_map> namespace dchat { @@ -32,6 +34,10 @@ namespace dchat void draw(sf::RenderWindow &window); static float getHeight(); + + static bool addBind(const std::string &key, const std::string &value, bool updateFile = true); + static bool removeBind(const std::string &key, bool updateFile = true); + static const std::unordered_map<std::string, std::string>& getBinds(); private: void processChatCommand(const StringView &cmd); private: |