EntityUpdatePacket.h 421 B

12345678910111213141516171819202122
  1. #ifndef ENTITY_UPDATE_PACKET_H
  2. #define ENTITY_UPDATE_PACKET_H
  3. #include "common/entities/Entity.h"
  4. #include "math/Vector.h"
  5. #include "network/Packet.h"
  6. struct EntityUpdatePacket {
  7. float lengthAngle;
  8. float widthAngle;
  9. Vector3 position;
  10. EntityUpdatePacket(const Entity& e);
  11. EntityUpdatePacket();
  12. void write(OutPacket& out) const;
  13. bool read(InPacket& in);
  14. static int getSize();
  15. };
  16. #endif