mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 06:33:36 +00:00
13 lines
305 B
C++
13 lines
305 B
C++
#include <NoiseCollection.h>
|
|
#include <Noise.h>
|
|
#include <memory>
|
|
|
|
Noise* NoiseCollection::GetNoise(const std::string& key) const
|
|
{
|
|
auto it = m_collection.find(key);
|
|
if(it != m_collection.end())
|
|
return it->second.get();
|
|
Scop::FatalError("A non existant Noise has been requested");
|
|
return nullptr;
|
|
}
|