5#include <nlohmann/json.hpp>
29 const nlohmann::json &data) {
31 soundRequest.
soundId = data.value(
"soundId",
static_cast<std::size_t
>(0));
void soundRequestFromJson(rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data)
Adds a SoundRequest to an entity from its blueprint data.
Definition SoundRequest.hpp:28
Request to play a sound loaded in the audio manager.
Definition SoundRequest.hpp:18
size_t soundId
Id returned by the audio manager when loading.
Definition SoundRequest.hpp:19