davey: davey_data is no longer required

This commit is contained in:
skypjack
2025-05-15 10:52:21 +02:00
parent 87ec44d3ee
commit 3b2adc999d
3 changed files with 10 additions and 30 deletions

View File

@@ -3,7 +3,6 @@
#include <component/rect_component.h>
#include <component/renderable_component.h>
#include <entt/core/hashed_string.hpp>
#include <entt/davey/meta.hpp>
#include <entt/meta/factory.hpp>
#include <meta/meta.h>
@@ -13,16 +12,13 @@ void meta_setup() {
using namespace entt::literals;
entt::meta_factory<input_listener_component>()
.custom<entt::davey_data>("input listener")
.data<&input_listener_component::command>("command"_hs)
.custom<entt::davey_data>("command");
.type("input listener")
.data<&input_listener_component::command>("command");
entt::meta_factory<position_component>()
.custom<entt::davey_data>("position")
.data<&SDL_FPoint::x>("x"_hs)
.custom<entt::davey_data>("x")
.data<&SDL_FPoint::y>("y"_hs)
.custom<entt::davey_data>("y");
.type("position")
.data<&SDL_FPoint::x>("x")
.data<&SDL_FPoint::y>("y");
// bind components...
}