CampaignScenarioPrologEpilog.h 737 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * CampaignScenarioPrologEpilog.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 "../filesystem/ResourcePath.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. struct DLL_LINKAGE CampaignScenarioPrologEpilog
  14. {
  15. bool hasPrologEpilog = false;
  16. VideoPath prologVideo;
  17. AudioPath prologMusic; // from CmpMusic.txt
  18. AudioPath prologVoice;
  19. std::string prologText;
  20. template <typename Handler> void serialize(Handler &h, const int formatVersion)
  21. {
  22. h & hasPrologEpilog;
  23. h & prologVideo;
  24. h & prologMusic;
  25. h & prologVoice;
  26. h & prologText;
  27. }
  28. };
  29. VCMI_LIB_NAMESPACE_END