| 123456789101112131415161718192021222324252627 |
- #pragma once
- #include <cstddef>
- #include <cstdint>
- #include <span>
- #include <vector>
- 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<const std::byte> bytes,
- std::size_t groupRows,
- std::size_t groupCount,
- std::vector<Span>& output) noexcept;
- /** Finds the content range for one cue definition hash. */
- [[nodiscard]] bool
- find(std::span<const Span> groups, std::uint32_t definitionHash, Span& output) noexcept;
- } // namespace sunrise::client::content::activity::sdk_generation::dialogue_group_index
|