#pragma once #include #include #include #include namespace sunrise::client::content::activity::sdk_generation::dialogue_group_index { /** One content range keyed by its authored dialogue definition hash. */ struct Span final { std::uint32_t definitionHash{}; std::size_t begin{}; std::size_t end{}; }; /** Builds a hash-sorted index from the native 16-byte dialogue group rows. */ [[nodiscard]] bool build(std::span bytes, std::size_t groupRows, std::size_t groupCount, std::vector& output) noexcept; /** Finds the content range for one cue definition hash. */ [[nodiscard]] bool find(std::span groups, std::uint32_t definitionHash, Span& output) noexcept; } // namespace sunrise::client::content::activity::sdk_generation::dialogue_group_index