Fixed up building enemies and items using componentsin the JSON.
This commit is contained in:
parent
9ce4fbd552
commit
222b39c403
13 changed files with 76 additions and 60 deletions
5
save.cpp
5
save.cpp
|
@ -92,9 +92,4 @@ void save::load_configs(DinkyECS::World &world) {
|
|||
world.set_the<GameConfig>({
|
||||
game, enemies, items, tiles
|
||||
});
|
||||
|
||||
auto enemy = game["enemy"];
|
||||
world.set_the<EnemyConfig>({
|
||||
enemy["HEARING_DISTANCE"]
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue