Prep for fixing the spatialmap to allow for entities without collision to still be in the space.
This commit is contained in:
parent
d93bc1615c
commit
fd53f92fe6
7 changed files with 27 additions and 53 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue