1
Network / How do i send std::list?
« on: April 19, 2014, 03:57:44 pm »
Hello everyone,
im trying to pack a std::list into a packet. I´ve read the tutorial on extending packets to handle user types. But i have my problems to get it to work with std::list. The list contains bullets which are a struct with four float variables. I hope somebody can help me with this.
im trying to pack a std::list into a packet. I´ve read the tutorial on extending packets to handle user types. But i have my problems to get it to work with std::list. The list contains bullets which are a struct with four float variables. I hope somebody can help me with this.
struct BulletInfo
{
float PosX;
float PosY;
float SpeedX;
float SpeedY;
};
//List
std::list<BulletInfo>BulletList;
{
float PosX;
float PosY;
float SpeedX;
float SpeedY;
};
//List
std::list<BulletInfo>BulletList;