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 sbk::engine
6{
7 class sound;
8
9 class SB_CLASS sound_container : public container
10 {
11 public:
12 sound_container() = default;
13
14 void gather_children_for_play(gather_children_context& context) const override;
15
16 bool can_add_children() const override { return false; }
17 bool can_add_child_type(const rttr::type& childType) const override { return false; }
18
19 bool can_add_parent_type(const rttr::type& parentType) const override;
20
21 [[nodiscard]] sound* get_sound() const;
23
24 private:
26
27 REGISTER_REFLECTION(sound_container, container)
28 };
29} // namespace sbk::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:35
Contains all information required for gathering sounds for runtime playing and selection.
Definition container.h:13