MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SendGameScript

Method SendGameScript

src/network/network_admin.cpp:550–558  ·  view source on GitHub ↗

* Send GameScript JSON output. * @param json The JSON string. */

Source from the content-addressed store, hash-verified

548 * @param json The JSON string.
549 */
550NetworkRecvStatus ServerNetworkAdminSocketHandler::SendGameScript(std::string_view json)
551{
552 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_GAMESCRIPT);
553
554 p->Send_string(json);
555 this->SendPacket(std::move(p));
556
557 return NETWORK_RECV_STATUS_OKAY;
558}
559
560/** Send ping-reply (pong) to admin **/
561NetworkRecvStatus ServerNetworkAdminSocketHandler::SendPong(uint32_t d1)

Callers 1

NetworkAdminGameScriptFunction · 0.80

Calls 2

Send_stringMethod · 0.80
SendPacketMethod · 0.45

Tested by

no test coverage detected