Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
audio_bank.hpp
Go to the documentation of this file.
1
8
9
#pragma once
10
#include <
toast/assets/core_types.hpp
>
11
#include <
toast/export.hpp
>
12
13
namespace
assets {
14
15
class
TOAST_API AudioBank :
public
Asset {
16
public
:
17
explicit
AudioBank(std::vector<uint8_t> data) : m_data(std::move(data)) { }
18
19
[[nodiscard]]
20
auto
type()
const
-> std::string_view
override
{
21
return
"audio_bank"
;
22
}
23
24
[[nodiscard]]
25
auto
get()
const
noexcept
->
const
std::vector<uint8_t>& {
26
return
m_data;
27
}
28
29
private
:
30
std::vector<uint8_t> m_data;
31
};
32
33
}
core_types.hpp
Base types for the asset system.
export.hpp
engine
src
toast
audio
audio_bank.hpp
Generated by
1.17.0