MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ChatInput

Function ChatInput

src/openrct2/interface/Chat.cpp:253–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void ChatInput(enum ChatInput input)
254{
255 switch (input)
256 {
257 case ChatInput::send:
258 if (!_chatCurrentLine.empty())
259 {
260 Network::SendChat(_chatCurrentLine.c_str());
261 }
262 ChatClearInput();
263 ChatClose();
264 break;
265 case ChatInput::close:
266 ChatClose();
267 break;
268 default:
269 break;
270 }
271}
272
273static const u8string& ChatGetHistory(size_t index)
274{

Callers

nothing calls this directly

Calls 4

SendChatFunction · 0.85
ChatClearInputFunction · 0.85
ChatCloseFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected