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

Function ConsoleCommandSay

src/openrct2/interface/InteractiveConsole.cpp:1376–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1374}
1375
1376static void ConsoleCommandSay(InteractiveConsole& console, const arguments_t& argv)
1377{
1378 if (Network::GetMode() == Network::Mode::none || Network::GetStatus() != Network::Status::connected
1379 || Network::GetAuthstatus() != Network::Auth::ok)
1380 {
1381 console.WriteFormatLine("This command only works in multiplayer mode.");
1382 return;
1383 }
1384
1385 if (!argv.empty())
1386 {
1387 Network::SendChat(argv[0].c_str());
1388 return;
1389 }
1390
1391 console.WriteFormatLine("Input your message");
1392}
1393
1394static void ConsoleCommandReplayStartRecord(InteractiveConsole& console, const arguments_t& argv)
1395{

Callers

nothing calls this directly

Calls 6

GetModeFunction · 0.85
GetStatusFunction · 0.85
GetAuthstatusFunction · 0.85
SendChatFunction · 0.85
WriteFormatLineMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected