|
|
@ -19,9 +19,6 @@ namespace fs = std::filesystem; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
void configure_world(DinkyECS::World &world, Map &game_map) { |
|
|
|
void configure_world(DinkyECS::World &world, Map &game_map) { |
|
|
|
const auto &config = world.get_the<MapConfig>(); |
|
|
|
const auto &config = world.get_the<MapConfig>(); |
|
|
|
// this sets up the gui event system
|
|
|
|
|
|
|
|
world.set_the<Events::GUI>(Events::GUI::START); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// configure a player as a fact of the world
|
|
|
|
// configure a player as a fact of the world
|
|
|
|
Player player{world.entity()}; |
|
|
|
Player player{world.entity()}; |
|
|
|
world.set_the<Player>(player); |
|
|
|
world.set_the<Player>(player); |
|
|
|