Skip to content

Commit

Permalink
feat(world): re enable set of global config
Browse files Browse the repository at this point in the history
  • Loading branch information
Milerius committed Oct 13, 2019
1 parent 779a875 commit 40e1a8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/world/antara/gaming/world/world.app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ namespace antara::gaming::world
//! Constructor
app::app(std::string config_name, std::string config_maker_name) noexcept
{
/*auto cfg = config::load_configuration<config::game_cfg>(core::assets_real_path() / "config",
std::move(config_name));*/
auto cfg = config::load_configuration<config::game_cfg>(core::assets_real_path() / "config",
std::move(config_name));
auto cfg_maker = config::load_configuration<graphics::canvas_2d>(core::assets_real_path() / "config",
std::move(config_maker_name));
//this->entity_registry_.set<config::game_cfg>(cfg);
auto& canvas_2d_cmp = this->entity_registry_.set<graphics::canvas_2d>(cfg_maker);
std::move(config_maker_name));
this->entity_registry_.set<config::game_cfg>(cfg);
auto &canvas_2d_cmp = this->entity_registry_.set<graphics::canvas_2d>(cfg_maker);
canvas_2d_cmp.reset_canvas();
dispatcher_.sink<event::quit_game>().connect<&app::receive_quit_game>(*this);
}
Expand Down

0 comments on commit 40e1a8c

Please sign in to comment.