aboutsummaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-21 21:44:37 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commitcb3a61f8db6b7020dd69f7786a1086f6fe014dfc (patch)
treeef2d2848a83d9937c74c95e800775f454bfed28e /src/client.h
parent2efae3ffd720095222c800e016286a45c9fe1e5c (diff)
downloadminetest-cb3a61f8db6b7020dd69f7786a1086f6fe014dfc.tar.gz
minetest-cb3a61f8db6b7020dd69f7786a1086f6fe014dfc.tar.bz2
minetest-cb3a61f8db6b7020dd69f7786a1086f6fe014dfc.zip
[CSM] Add method that display chat to client-sided lua. (#5089) (#5091)
* squashed: [Client-sided scripting] Don't register functions that don't work. (#5091)
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index 2fdade61a..584b13a90 100644
--- a/src/client.h
+++ b/src/client.h
@@ -557,6 +557,11 @@ public:
void makeScreenshot(IrrlichtDevice *device);
+ inline void pushToChatQueue(const std::wstring &input)
+ {
+ m_chat_queue.push(input);
+ }
+
private:
// Virtual methods from con::PeerHandler