Просмотр исходного кода

davey: view entry point (draft)

skypjack 1 год назад
Родитель
Сommit
54b6ee0f27
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      tools/entt/davey/davey.hpp

+ 10 - 0
tools/entt/davey/davey.hpp

@@ -204,6 +204,16 @@ void davey(const entt::basic_sparse_set<Entity, Allocator> &set) {
     davey(locator<meta_ctx>::value_or(), set);
 }
 
+template<typename... Get, typename... Exclude>
+void davey(const meta_ctx &ctx, const entt::basic_view<get_t<Get...>, exclude_t<Exclude...>> &view) {
+    // TODO
+}
+
+template<typename... Get, typename... Exclude>
+void davey(const entt::basic_view<get_t<Get...>, exclude_t<Exclude...>> &view) {
+    davey(locator<meta_ctx>::value_or(), view);
+}
+
 template<typename Entity, typename Allocator>
 void davey(const meta_ctx &ctx, const entt::basic_registry<Entity, Allocator> &registry) {
     ImGui::BeginTabBar("#tabs");