ExtraOptionsInfo.h 564 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * ExtraOptionsInfo.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. struct DLL_LINKAGE ExtraOptionsInfo
  13. {
  14. bool cheatsAllowed = true;
  15. bool unlimitedReplay = false;
  16. bool operator == (const ExtraOptionsInfo & other) const;
  17. template <typename Handler>
  18. void serialize(Handler &h)
  19. {
  20. h & cheatsAllowed;
  21. h & unlimitedReplay;
  22. }
  23. };
  24. VCMI_LIB_NAMESPACE_END