Cleaning up and sorting out how to use the new events best.
This commit is contained in:
parent
04350cb51e
commit
2fdbd63f4c
4 changed files with 38 additions and 32 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue