Sound Bakery 
v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
event.h
1
#pragma once
2
3
#include "sound_bakery/core/core_include.h"
4
5
namespace
SB::Engine
6
{
7
enum
SB_ACTION_TYPE
8
{
9
SB_ACTION_INVALID,
10
SB_ACTION_PLAY,
11
SB_ACTION_STOP,
12
SB_ACTION_NUM
13
};
14
15
struct
SB_CLASS
Action
16
{
17
SB_ACTION_TYPE m_type = SB_ACTION_PLAY;
18
SB::Core::DatabasePtr<SB::Core::DatabaseObject>
m_destination;
19
};
20
21
class
SB_CLASS
Event
:
public
SB::Core::DatabaseObject
22
{
23
REGISTER_REFLECTION(
Event
,
SB::Core::DatabaseObject
)
24
25
public
:
26
std::vector<Action> m_actions;
27
};
28
}
// namespace SB::Engine
SB::Core::DatabaseObject
Base object type for any object that can exist in the editor/database. Holds an ID and name.
Definition
database_object.h:22
SB::Core::DatabasePtr
Definition
database_ptr.h:23
SB::Engine::Event
Definition
event.h:22
SB::Engine::Action
Definition
event.h:16
src
sound_bakery
event
event.h
Generated by
1.9.8