HighScore.h 748 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * HighScore.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. VCMI_LIB_NAMESPACE_BEGIN
  12. class DLL_LINKAGE HighScoreParameter
  13. {
  14. public:
  15. int difficulty;
  16. int day;
  17. int townAmount;
  18. bool usedCheat;
  19. bool hasGrail;
  20. bool allEnemiesDefeated;
  21. std::string campaignName;
  22. std::string scenarioName;
  23. std::string playerName;
  24. template <typename Handler> void serialize(Handler &h)
  25. {
  26. h & difficulty;
  27. h & day;
  28. h & townAmount;
  29. h & usedCheat;
  30. h & hasGrail;
  31. h & allEnemiesDefeated;
  32. h & campaignName;
  33. h & scenarioName;
  34. h & playerName;
  35. }
  36. };
  37. VCMI_LIB_NAMESPACE_END