From 1f17622c0676ae0dbcde94ab23702a989eaa4ec6 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Fri, 24 May 2019 16:50:14 +0700 Subject: [PATCH 1/2] update modules --- modules/enduro2d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/enduro2d b/modules/enduro2d index 7dde063..324c320 160000 --- a/modules/enduro2d +++ b/modules/enduro2d @@ -1 +1 @@ -Subproject commit 7dde063d8ae7c5731998b6313af252b18a8332d0 +Subproject commit 324c3200a9016c5d0897bad3463688e2fd581931 From fa01c5ddf3b0daeb31c778ec30b7232242e79b6f Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Fri, 24 May 2019 16:59:09 +0700 Subject: [PATCH 2/2] 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; } };