]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/chat.h
Increase limit for simultaneous blocks sent per client and the meshgen cache.
[dragonfireclient.git] / src / chat.h
index 8649704d19131e261749896c6cea72a0cf16cb71..0b98e4d3c0507118b6485a70754998ad36ba128b 100644 (file)
@@ -94,8 +94,6 @@ class ChatBuffer
        // Delete lines older than maxAge.
        void deleteByAge(f32 maxAge);
 
-       // Get number of columns, 0 if reformat has not been called yet.
-       u32 getColumns() const;
        // Get number of rows, 0 if reformat has not been called yet.
        u32 getRows() const;
        // Update console size and reformat all formatted lines.
@@ -153,7 +151,7 @@ class ChatPrompt
        void input(const std::wstring &str);
 
        // Add a string to the history
-       void addToHistory(std::wstring line);
+       void addToHistory(const std::wstring &line);
 
        // Get current line
        std::wstring getLine() const { return m_line; }
@@ -165,7 +163,7 @@ class ChatPrompt
        void clear();
 
        // Replace the current line with the given text
-       std::wstring replace(std::wstring line);
+       std::wstring replace(const std::wstring &line);
 
        // Select previous command from history
        void historyPrev();
@@ -256,7 +254,7 @@ class ChatBackend
        ~ChatBackend() = default;
 
        // Add chat message
-       void addMessage(std::wstring name, std::wstring text);
+       void addMessage(const std::wstring &name, std::wstring text);
        // Parse and add unparsed chat message
        void addUnparsedMessage(std::wstring line);