Made the components module work like textures and sound so that there's just one constant map of components.

This commit is contained in:
Zed A. Shaw 2025-06-02 23:33:59 -04:00
parent ab391aaa97
commit f208ca946e
10 changed files with 42 additions and 41 deletions

View file

@ -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);