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

@ -8,12 +8,10 @@
class WorldBuilder {
public:
Map& $map;
components::ComponentMap& $components;
SpatialMap $collision;
WorldBuilder(Map &map, components::ComponentMap& components) :
$map(map),
$components(components)
WorldBuilder(Map &map) :
$map(map)
{ }
void generate_map();