]> git.lizzy.rs Git - minetest.git/blobdiff - src/chat.h
Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate...
[minetest.git] / src / chat.h
index 8a40c7ccf58c37840249f004ddd2166c155132ef..82ce80875a2bd7d38e635e13015b7085af070078 100644 (file)
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef CHAT_HEADER
 #define CHAT_HEADER
 
-#include "irrlichttypes_bloated.h"
+#include "irrlichttypes.h"
 #include <string>
 #include <vector>
 #include <list>
@@ -142,8 +142,9 @@ class ChatPrompt
        ChatPrompt(std::wstring prompt, u32 history_limit);
        ~ChatPrompt();
 
-       // Input character
+       // Input character or string
        void input(wchar_t ch);
+       void input(const std::wstring &str);
 
        // Submit, clear and return current line
        std::wstring submit();
@@ -160,7 +161,7 @@ class ChatPrompt
        void historyNext();
 
        // Nick completion
-       void nickCompletion(const std::list<std::wstring>& names, bool backwards);
+       void nickCompletion(const std::list<std::string>& names, bool backwards);
 
        // Update console size and reformat the visible portion of the prompt
        void reformat(u32 cols);