definition.h 589 B

123456789101112131415161718
  1. #pragma once
  2. #include <cstdint>
  3. namespace sunrise::state::build_data {
  4. /** PE fields and a configured-equipment hash tie the generated mappings to one build. */
  5. struct BuildIdentity {
  6. std::uint32_t imageTimestamp{};
  7. std::uint32_t imageSize{};
  8. /** Authored item levels and the light-stat rules, so a mismatched cache is not reused. */
  9. std::uint64_t configuredEquipmentHash{};
  10. /** @return True when every field matches. */
  11. [[nodiscard]] constexpr bool operator==(const BuildIdentity& other) const noexcept = default;
  12. };
  13. } // namespace sunrise::state::build_data