From fa01c5ddf3b0daeb31c778ec30b7232242e79b6f Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Fri, 24 May 2019 16:59:09 +0700 Subject: [PATCH] fixes after engine update --- sources/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index f238ade..3ff90ad 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -29,17 +29,17 @@ namespace } }; - class game final : public high_application { + class game final : public starter::application { public: - bool initialize() final{ + bool initialize() final { ecs::registry_filler(the().registry()) .system(world::priority_update); - ecs::entity camera_e = the().registry().create_entity(); - ecs::entity_filler(camera_e) + const gobject_iptr camera_i = the().instantiate(); + camera_i->entity_filler() .component(camera() .background({1.f, 0.4f, 0.f, 1.f})) - .component(node::create(camera_e)); + .component(node::create(camera_i)); return true; } };