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
5
namespace
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
;
22
void
set_sound(
const
sbk::core::database_ptr<sbk::engine::sound>
&
sound
);
23
24
private
:
25
sbk::core::database_ptr<sbk::engine::sound>
m_sound;
26
27
REGISTER_REFLECTION(
sound_container
,
container
)
28
};
29
}
// namespace sbk::engine
sbk::core::database_ptr
Definition
database_ptr.h:23
sbk::engine::container
Base container type. Inherited types include sounds, random, sequence etc.
Definition
container.h:49
sbk::engine::sound_container
Definition
sound_container.h:10
sbk::engine::sound
Definition
sound.h:35
sbk::engine::gather_children_context
Contains all information required for gathering sounds for runtime playing and selection.
Definition
container.h:13
src
sound_bakery
node
container
sound_container.h
Generated by
1.9.8