activity_destination_spawn_binding.h 786 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <cstdint>
  3. #include "definition.h"
  4. namespace sunrise::state::activity::destination {
  5. /**
  6. * Picks the spawn-set hash to send, dropping one the destination does not load.
  7. * A set declared only by a package the destination never loads cannot attach, and the player
  8. * arrives with no spawn point. The absent hash goes out instead, so the Client picks its own.
  9. * @param selection Committed destination.
  10. * @param fallback Authored fallback hash.
  11. * @return The resolved hash, or the absent hash when the set cannot attach.
  12. */
  13. [[nodiscard]] std::uint32_t attachable_spawn_set_hash(const DestinationSelection& selection,
  14. std::uint32_t fallback) noexcept;
  15. } // namespace sunrise::state::activity::destination