31
Réseau / Re : Multijoueur ?
« le: Décembre 04, 2014, 11:29:40 am »sf::Packet& operator >>(sf::Packet& packet, ChatPacket& chatpacket)
{
sf::Uint32 it;
packet >> chatpacket.author >> chatpacket.message >> chatpacket.timestamp >> it >> chatpacket.commandarg;
chatpacket.commandcode = static_cast<CommandCode>(it);
return packet;
}
{
sf::Uint32 it;
packet >> chatpacket.author >> chatpacket.message >> chatpacket.timestamp >> it >> chatpacket.commandarg;
chatpacket.commandcode = static_cast<CommandCode>(it);
return packet;
}
Comme ça ? :p