EntityUpdatePacket.h 443 B

1234567891011121314151617181920212223
  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. Vector3 velocity;
  11. EntityUpdatePacket(const Entity& e);
  12. EntityUpdatePacket();
  13. void write(OutPacket& out) const;
  14. bool read(InPacket& in);
  15. static int getSize();
  16. };
  17. #endif