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
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
:
23
SB::Core::DatabasePtr<SB::Engine::Sound>
m_sound;
24
25
REGISTER_REFLECTION(
SoundContainer
,
Container
)
26
};
27
}
// namespace SB::Engine
SB::Core::DatabasePtr
Definition
database_ptr.h:23
SB::Engine::Container
Base container type. Inherited types include sounds, random, sequence etc.
Definition
container.h:49
SB::Engine::SoundContainer
Definition
sound_container.h:10
SB::Engine::Sound
Definition
sound.h:9
SB::Engine::GatherChildrenContext
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