solanaceae_contact/solanaceae/contact/components_id.inl

33 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-07-21 17:13:59 +02:00
#include "./components.hpp"
#include <entt/core/type_info.hpp>
// TODO: move more central
#define DEFINE_COMP_ID(x) \
template<> \
constexpr entt::id_type entt::type_hash<x>::value() noexcept { \
using namespace entt::literals; \
return #x##_hs; \
}
// cross compiler stable ids
DEFINE_COMP_ID(Contact::Components::TagSelfWeak)
DEFINE_COMP_ID(Contact::Components::TagSelfStrong)
DEFINE_COMP_ID(Contact::Components::TagBig)
2023-07-29 19:45:37 +02:00
DEFINE_COMP_ID(Contact::Components::RequestIncoming)
DEFINE_COMP_ID(Contact::Components::TagRequestOutgoing)
2023-07-21 17:13:59 +02:00
DEFINE_COMP_ID(Contact::Components::Self)
2023-07-22 23:10:07 +02:00
DEFINE_COMP_ID(Contact::Components::Parent)
2023-07-21 17:13:59 +02:00
DEFINE_COMP_ID(Contact::Components::ParentOf)
DEFINE_COMP_ID(Contact::Components::ContactModel)
DEFINE_COMP_ID(Contact::Components::Name)
2023-08-01 18:23:07 +02:00
DEFINE_COMP_ID(Contact::Components::TagAvatarInvalidate)
2023-08-01 18:02:42 +02:00
DEFINE_COMP_ID(Contact::Components::AvatarMemory)
DEFINE_COMP_ID(Contact::Components::AvatarFile)
2023-07-21 17:13:59 +02:00
DEFINE_COMP_ID(Contact::Components::ConnectionState)
DEFINE_COMP_ID(Contact::Components::StatusMessage)
#undef DEFINE_COMP_ID