definition.h 740 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <array>
  3. #include <cstddef>
  4. #include <cstdint>
  5. namespace sunrise::state::build_data::starter_sets {
  6. /** The installed table holds one row for each of the 3 playable classes. */
  7. inline constexpr std::size_t kClassCount = 3;
  8. /** Items one class row lists over its two lists. The installed rows list 15. */
  9. inline constexpr std::size_t kItemCapacity = 24;
  10. /** The items the packages give a new character of one class, in authored order. */
  11. struct Definition {
  12. /** Class byte the row is keyed by: 0 Titan, 1 Hunter, 2 Warlock. */
  13. std::uint8_t characterClass{};
  14. std::uint8_t itemCount{};
  15. std::array<std::uint16_t, kItemCapacity> itemIndices{};
  16. };
  17. } // namespace sunrise::state::build_data::starter_sets