NetworkLagReplyPrediction.h 779 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * NetworkLagReplyPrediction.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "NetworkLagPredictedPack.h"
  12. #include "../../lib/constants/EntityIdentifiers.h"
  13. /// Class that contains data for a single pack that client sent to server
  14. class NetworkLagReplyPrediction
  15. {
  16. public:
  17. /// Sender that sent this reply. Generally - this should be only local client color
  18. PlayerColor senderID;
  19. /// Unique request ID that was written into sent pack
  20. uint32_t requestID;
  21. /// One or more packs that client expects to receive from server as a reply
  22. std::vector<NetworkLagPredictedPack> writtenPacks;
  23. };