Merge pull request #14 from enduro2d/hotfix/update_modules

Hotfix/update modules
This commit is contained in:
2019-05-24 16:59:48 +07:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -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<world>().registry())
.system<game_system>(world::priority_update);
ecs::entity camera_e = the<world>().registry().create_entity();
ecs::entity_filler(camera_e)
const gobject_iptr camera_i = the<world>().instantiate();
camera_i->entity_filler()
.component<camera>(camera()
.background({1.f, 0.4f, 0.f, 1.f}))
.component<actor>(node::create(camera_e));
.component<actor>(node::create(camera_i));
return true;
}
};