add map for SoundSystem and fix error in MusicComponent

This commit is contained in:
TrueBabyChaise
2021-06-08 10:45:36 +02:00
parent 57fd7fbbfa
commit 8c380e05b1
6 changed files with 37 additions and 45 deletions
+4 -5
View File
@@ -35,20 +35,19 @@ namespace BBM
//! @inherit
WAL::Component *clone(WAL::Entity &entity) const override;
//! @brief Create a new MusicComponent at a certain Music
MusicComponent(WAL::Entity &entity, std::string &musicPath);
explicit MusicComponent(WAL::Entity &entity, const std::string &musicPath);
//! @brief A Music component is copy constructable
MusicComponent(const MusicComponent &) = default;
//! @brief A default destructor
~MusicComponent() override = default;
//! @brief A Music component is not assignable
MusicComponent &operator=(const MusicComponent &) = delete;
private:
//! @brief music of this entity
RAY::Audio::Music _music;
//! @brief Create a new MusicComponent linked to a specific entity
explicit MusicComponent(WAL::Entity &entity);
//! @brief patht to the music assets
const std::string _musicPath;
};
} // namespace BBM