diff --git a/src/voxel_engine.cpp b/src/voxel_engine.cpp index 02e4a06a..c6a2ec7e 100644 --- a/src/voxel_engine.cpp +++ b/src/voxel_engine.cpp @@ -10,44 +10,9 @@ static debug::Logger logger("main"); -#include - -struct position { - float x; - float y; -}; - -struct velocity { - float dx; - float dy; -}; - -void update(entt::registry ®istry) { - auto view = registry.view(); - - view.each([](const auto &pos, const auto &vel) { - logger.info() << pos.x << "," << pos.y << " - " << vel.dx << ", " << vel.dy; - }); -} - -int entt_test() { - entt::registry registry; - - for(auto i = 0u; i < 10u; ++i) { - const auto entity = registry.create(); - registry.emplace(entity, i * 1.f, i * 1.f); - if(i % 2 == 0) { registry.emplace(entity, i * .1f, i * .1f); } - } - - update(registry); - return EXIT_SUCCESS; -} - int main(int argc, char** argv) { debug::Logger::init("latest.log"); - return entt_test(); - EnginePaths paths; if (!parse_cmdline(argc, argv, paths)) return EXIT_SUCCESS;