Unravel Engine C++ Reference
Loading...
Searching...
No Matches
layer_mask.cpp
Go to the documentation of this file.
1#include "layer_mask.hpp"
2
5
7
8namespace unravel
9{
11{
12 entt::meta_factory<layer_mask>{}
13 .type("layer_mask"_hs)
15 entt::attribute{"name", "layer_mask"},
16 entt::attribute{"pretty_name", "Layer Mask"},
17 })
18 .data<nullptr, &layer_mask::mask>("mask"_hs)
20 entt::attribute{"name", "mask"},
21 entt::attribute{"pretty_name", "Mask"},
22 });
23}
24
26{
27 try_save(ar, ser20::make_nvp("mask", obj.mask));
28}
31
33{
34 try_load(ar, ser20::make_nvp("mask", obj.mask));
35}
36
39} // 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