Cleaning up and sorting out how to use the new events best.

This commit is contained in:
Zed A. Shaw 2024-10-29 23:39:03 -04:00
parent 04350cb51e
commit 2fdbd63f4c
4 changed files with 38 additions and 32 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <string>
#include <filesystem>
#include <memory>
#include <unordered_map>
#include <SFML/Audio.hpp>
@ -11,7 +12,7 @@ struct SoundPair {
struct SoundManager {
std::filesystem::path $base_path;
std::unordered_map<std::string, SoundPair*> $sounds;
std::unordered_map<std::string, std::shared_ptr<SoundPair> > $sounds;
SoundManager(std::string base_path);