| 322 | } |
| 323 | |
| 324 | void NetworkClient::sendChatMessage(std::string_view message) |
| 325 | { |
| 326 | if (_serverConnection != nullptr) |
| 327 | { |
| 328 | SendChatMessage packet; |
| 329 | packet.length = static_cast<uint16_t>(message.size() + 1); |
| 330 | std::memcpy(packet.text, message.data(), message.size()); |
| 331 | _serverConnection->sendPacket(packet); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | void NetworkClient::sendGameCommand(CompanyId company, const OpenLoco::GameCommands::registers& regs) |
| 336 | { |
nothing calls this directly
no test coverage detected