Unravel Engine C++ Reference
Loading...
Searching...
No Matches
audio_importer_meta.cpp
Go to the documentation of this file.
2
4
8
9namespace unravel
10{
11
13{
14 // Register audio_importer_meta with entt
15 entt::meta_factory<audio_importer_meta>{}
16 .type("audio_importer_meta"_hs)
18 entt::attribute{"name", "audio_importer_meta"},
19 entt::attribute{"pretty_name", "Audio Importer Meta"},
20 })
21 .func<&audio_importer_meta::get_meta_type>("get_meta_type"_hs)
22 .func<&audio_importer_meta::get_static_meta_type>("get_static_meta_type"_hs)
23 .func<&audio_importer_meta::as_derived>("as_derived"_hs)
24 .data<&audio_importer_meta::force_to_mono>("force_to_mono"_hs)
25 .custom<entt::attributes>(entt::attributes{
26 entt::attribute{"name", "force_to_mono"},
27 entt::attribute{"pretty_name", "Force To Mono"},
28 });
29}
30
32{
33 try_save(ar, ser20::make_nvp("base_type", ser20::base_class<asset_importer_meta>(&obj)));
34 try_save(ar, ser20::make_nvp("force_to_mono", obj.force_to_mono));
35}
38
40{
41 try_load(ar, ser20::make_nvp("base_type", ser20::base_class<asset_importer_meta>(&obj)));
42 try_load(ar, ser20::make_nvp("force_to_mono", obj.force_to_mono));
43}
46
47} // namespace unravel
attributes::value_type attribute
Definition reflection.h:19
std::map< std::string, meta_any > attributes
Definition reflection.h:18
BinaryInputArchive iarchive_binary_t
simd::JSONOutputArchive oarchive_associative_t
BinaryOutputArchive oarchive_binary_t
simd::JSONInputArchive iarchive_associative_t
#define REFLECT(cls)
Definition reflection.h:133
#define SAVE_INSTANTIATE(cls, Archive)
#define LOAD(cls)
auto try_save(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define LOAD_INSTANTIATE(cls, Archive)
#define SAVE(cls)
auto try_load(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool