davey: davey_data is no longer required
This commit is contained in:
@@ -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...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user