11 entt::meta_factory<tag_component>{}
12 .type(
"tag_component"_hs)
29 .data<&tag_component::tag>(
"tag"_hs)
39 try_save(ar, ser20::make_nvp(
"name", obj.name));
40 try_save(ar, ser20::make_nvp(
"tag", obj.tag));
47 try_load(ar, ser20::make_nvp(
"name", obj.name));
48 try_load(ar, ser20::make_nvp(
"tag", obj.tag));
attributes::value_type attribute
std::map< std::string, meta_any > attributes
BinaryInputArchive iarchive_binary_t
simd::JSONOutputArchive oarchive_associative_t
BinaryOutputArchive oarchive_binary_t
simd::JSONInputArchive iarchive_associative_t
#define SAVE_INSTANTIATE(cls, Archive)
auto try_save(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define LOAD_INSTANTIATE(cls, Archive)
auto try_load(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
Component that provides a tag (name or label) for an entity.
std::string name
The name of the entity.