#include "Soundtrack.hxx"
#include <unordered_map>
#include <vector>
#include <betterEnums.hxx>
#include <json.hxx>
Go to the source code of this file.
|
template<typename Key , typename Value > |
using | Mapping = std::unordered_map< Key, Value > |
|
using | string = std::string |
|
template<typename Type > |
using | Vector = std::vector< Type > |
|
◆ Mapping
template<typename Key , typename Value >
using Mapping = std::unordered_map<Key, Value> |
◆ string
◆ Vector
template<typename Type >
using Vector = std::vector<Type> |
◆ BETTER_ENUM()
BETTER_ENUM |
( |
AudioTrigger |
, |
|
|
int |
, |
|
|
MainMenu |
, |
|
|
MainTheme |
, |
|
|
NatureSounds |
|
|
) |
| |
◆ from_json() [1/2]
◆ from_json() [2/2]
Definition at line 9 of file AudioConfig.cxx.
13 std::vector<string> triggers;
14 j[
"triggers"].get_to(triggers);
15 std::transform(triggers.begin(), triggers.end(), std::back_inserter(config.
triggers),
16 [](
const string &trigger) { return AudioTrigger::_from_string(trigger.c_str()); });