void NetClient::set_ready(const bool b) { if (!me || !server || ourself == players.end()) return; PlayerData copy = *ourself; copy.ready = (char) b; ENetPacket* pck = copy.create_packet(); enet_peer_send(server, LEMNET_CHANNEL_MAIN, pck); }
void NetClient::set_style_and_spec(const char st, const bool sp) { if (!me || !server || ourself == players.end()) return; PlayerData copy = *ourself; copy.style = st; copy.spec = sp; ENetPacket* pck = copy.create_packet(); enet_peer_send(server, LEMNET_CHANNEL_MAIN, pck); }