remove empty ctor for SoundComponent

This commit is contained in:
TrueBabyChaise
2021-06-08 10:50:42 +02:00
parent 8c380e05b1
commit 473b6d64e8
2 changed files with 4 additions and 15 deletions
+2 -8
View File
@@ -9,7 +9,7 @@
namespace BBM
{
SoundComponent::SoundComponent(WAL::Entity &entity, \
std::map<SoundComponent::soundIndex, std::string> &soundPath)
const std::map<SoundComponent::soundIndex, std::string> &soundPath)
: WAL::Component(entity),
_soundIndex(IDLE),
_soundPath(soundPath)
@@ -24,15 +24,9 @@ std::map<SoundComponent::soundIndex, std::string> &soundPath)
}
}
SoundComponent::SoundComponent(WAL::Entity &entity)
: Component(entity),
_soundList(),
_soundIndex()
{}
WAL::Component *SoundComponent::clone(WAL::Entity &entity) const
{
return new SoundComponent(entity);
return new SoundComponent(entity, this->_soundPath);
}
void SoundComponent::playSound()