Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
sound_container.h
1#pragma once
2
3#include "container.h"
4
5namespace SB::Engine
6{
7 class Sound;
8
9 class SB_CLASS SoundContainer : public Container
10 {
11 public:
12 SoundContainer() = default;
13
14 void gatherChildrenForPlay(GatherChildrenContext& context) const override;
15
16 bool canAddChild(const SB::Core::DatabasePtr<NodeBase>& child) const override { return false; }
17
18 Sound* getSound() const;
19
20 void setSound(const SB::Core::DatabasePtr<SB::Engine::Sound>& sound);
21
22 private:
24
25 REGISTER_REFLECTION(SoundContainer, Container)
26 };
27} // namespace SB::Engine
Definition database_ptr.h:23
Base container type. Inherited types include sounds, random, sequence etc.
Definition container.h:49
Definition sound_container.h:10
Definition sound.h:9
Contains all information required for gathering sounds for runtime playing and selection.
Definition container.h:13