integrate engine variant add property registry and database modify render system to use new transform components
33 lines
792 B
C++
33 lines
792 B
C++
#include "engine/core/application.hpp"
|
|
#include "engine/core/engine-variant/engine-variant-property.hpp"
|
|
#include "engine/core/engine-variant/engine-variant.hpp"
|
|
#include "engine/core/service-locator.hpp"
|
|
#include "engine/ecs/components.hpp"
|
|
#include "engine/scene/scene.hpp"
|
|
|
|
#include "game/scenes/menu-scene/menu.hpp"
|
|
|
|
#include <entt/entt.hpp>
|
|
#include <raylib.h>
|
|
|
|
class Game : public varicle::Application {
|
|
|
|
public:
|
|
void on_init() override {
|
|
auto &scene_manager =
|
|
varicle::ServiceLocator::get<varicle::SceneManager>();
|
|
scene_manager.register_scene(
|
|
"menu", []() { return std::make_unique<MenuScene>(); });
|
|
|
|
change_scene("menu");
|
|
}
|
|
|
|
void on_shutdown() override {}
|
|
};
|
|
|
|
int main() {
|
|
Game game;
|
|
game.run();
|
|
return 0;
|
|
}
|