#include "./components.hpp" #include // TODO: move more central #define DEFINE_COMP_ID(x) \ template<> \ constexpr entt::id_type entt::type_hash::value() noexcept { \ using namespace entt::literals; \ return #x##_hs; \ } // cross compile(r) stable ids DEFINE_COMP_ID(Message::Components::ToxGroupMessageID) DEFINE_COMP_ID(Message::Components::SyncedBy) DEFINE_COMP_ID(Message::Components::Transfer::ToxTransferFriend) DEFINE_COMP_ID(Message::Components::Transfer::FileID) DEFINE_COMP_ID(Message::Components::Transfer::FileKind) #undef DEFINE_COMP_ID