PlayerUpdatePacket.h 345 B

12345678910111213141516171819
  1. #ifndef PLAYER_UPDATE_PACKET_H
  2. #define PLAYER_UPDATE_PACKET_H
  3. #include "common/entities/Entity.h"
  4. #include "network/Packet.h"
  5. struct PlayerUpdatePacket {
  6. Vector3 position;
  7. PlayerUpdatePacket(Entity& e);
  8. PlayerUpdatePacket();
  9. void write(OutPacket& out) const;
  10. bool read(InPacket& in);
  11. static int getSize();
  12. };
  13. #endif