Browse Source

testbed: temp init function for test purposes

skypjack 10 tháng trước cách đây
mục cha
commit
afe687e9d7
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      testbed/application/application.cpp

+ 9 - 0
testbed/application/application.cpp

@@ -63,10 +63,19 @@ application::~application() {
     SDL_Quit();
 }
 
+static void static_setup_for_dev_purposes(entt::registry &registry) {
+    const auto entt = registry.create();
+
+    registry.emplace<double>(entt, 1.2);
+    registry.emplace<int>(entt, 3);
+}
+
 int application::run() {
     entt::registry registry{};
     context context{};
 
+    static_setup_for_dev_purposes(registry);
+
     quit = false;
 
     while(!quit) {