MapFeaturesH3M.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * MapFeaturesH3M.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. enum class EMapFormat : uint8_t;
  13. struct MapFormatFeaturesH3M
  14. {
  15. public:
  16. static MapFormatFeaturesH3M find(EMapFormat format);
  17. static MapFormatFeaturesH3M getFeaturesROE();
  18. static MapFormatFeaturesH3M getFeaturesAB();
  19. static MapFormatFeaturesH3M getFeaturesSOD();
  20. static MapFormatFeaturesH3M getFeaturesWOG();
  21. static MapFormatFeaturesH3M getFeaturesHOTA();
  22. MapFormatFeaturesH3M() = default;
  23. // number of bytes in bitmask of appropriate type
  24. int factionsBytes;
  25. int heroesBytes;
  26. int artifactsBytes;
  27. int resourcesBytes;
  28. int skillsBytes;
  29. int spellsBytes;
  30. int buildingsBytes;
  31. // total number of elements of appropriate type
  32. int factionsCount;
  33. int heroesCount;
  34. int heroesPortraitsCount;
  35. int artifactsCount;
  36. int resourcesCount;
  37. int creaturesCount;
  38. int spellsCount;
  39. int skillsCount;
  40. int terrainsCount;
  41. int artifactSlotsCount;
  42. int buildingsCount;
  43. // identifier that should be treated as "invalid", usually - '-1'
  44. int heroIdentifierInvalid;
  45. int artifactIdentifierInvalid;
  46. int creatureIdentifierInvalid;
  47. int spellIdentifierInvalid;
  48. // features from which map format are available
  49. bool levelROE = false;
  50. bool levelAB = false;
  51. bool levelSOD = false;
  52. bool levelWOG = false;
  53. bool levelHOTA = false;
  54. };
  55. VCMI_LIB_NAMESPACE_END