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

Method SendCompanyNew

src/network/network_admin.cpp:307–315  ·  view source on GitHub ↗

* Tell the admin that a new company was founded. * @param company_id The company that was founded. */

Source from the content-addressed store, hash-verified

305 * @param company_id The company that was founded.
306 */
307NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyNew(CompanyID company_id)
308{
309 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_COMPANY_NEW);
310 p->Send_uint8(company_id);
311
312 this->SendPacket(std::move(p));
313
314 return NETWORK_RECV_STATUS_OKAY;
315}
316
317/**
318 * Send the admin some information about a company.

Callers 1

NetworkAdminCompanyNewFunction · 0.80

Calls 2

Send_uint8Method · 0.45
SendPacketMethod · 0.45

Tested by

no test coverage detected