Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
PlayerSetupSound.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Display.hpp"
5#include "RuleTypes.hpp"
7
8#include <array>
9#include <cstddef>
10#include <cstdint>
11#include <optional>
12
14{
21
22 struct State
23 {
25 std::optional<udsound::PennybagsVoice> playing;
26 std::optional<udsound::PennybagsVoice> desired;
29 };
30 struct Update
31 {
32 std::array<VoiceRequest, 2> requests{};
33 std::size_t count{};
34 };
35
36 // DISPLAY_UDPSEL_Initialize() resets desired/playing sound state but the
37 // retail static udpsel_WelcomeMessagePlayed survives for process lifetime.
38 void resetPlayback(State& state) noexcept;
39
40 [[nodiscard]] Update startPhase(
41 State& state,
43 bool aiPlayer,
44 std::uint8_t numberOfPlayers) noexcept;
45}
unsigned state
unsigned index
Update startPhase(State &state, display::PlayerSetupPhase phase, bool aiPlayer, std::uint8_t numberOfPlayers) noexcept
void resetPlayback(State &state) noexcept
std::optional< udsound::PennybagsVoice > desired
std::optional< udsound::PennybagsVoice > playing
udsound::TokenVoiceClipPolicy policy
std::array< VoiceRequest, 2 > requests