Made the components module work like textures and sound so that there's just one constant map of components.
This commit is contained in:
parent
ab391aaa97
commit
f208ca946e
10 changed files with 42 additions and 41 deletions
|
@ -93,7 +93,7 @@ DinkyECS::Entity WorldBuilder::configure_entity_in_map(DinkyECS::World &world, j
|
|||
}
|
||||
|
||||
if(entity_data.contains("components")) {
|
||||
components::configure_entity($components, world, item, entity_data["components"]);
|
||||
components::configure_entity(world, item, entity_data["components"]);
|
||||
}
|
||||
|
||||
$collision.insert(pos, item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue