Prep for fixing the spatialmap to allow for entities without collision to still be in the space.

This commit is contained in:
Zed A. Shaw 2025-07-29 02:13:29 -04:00
parent d93bc1615c
commit fd53f92fe6
7 changed files with 27 additions and 53 deletions

View file

@ -8,10 +8,11 @@
class WorldBuilder {
public:
Map& $map;
SpatialMap $collision;
std::shared_ptr<SpatialMap> $collision;
WorldBuilder(Map &map) :
$map(map)
$map(map),
$collision(std::make_shared<SpatialMap>())
{ }
void generate_map();