| 73 | } |
| 74 | |
| 75 | sp<VoxelMap> TileObjectDoodad::getVoxelMap(Vec3<int> mapIndex, bool los) const |
| 76 | { |
| 77 | if (mapIndex.x > 0 || mapIndex.y > 0 || mapIndex.z > 0) |
| 78 | { |
| 79 | return nullptr; |
| 80 | } |
| 81 | // FIXME: Implement when we multi-select with 1 click in city |
| 82 | // Don't block LOS until we know what's under |
| 83 | if (los) |
| 84 | { |
| 85 | return doodad.lock()->voxelMap; |
| 86 | } |
| 87 | return nullptr; |
| 88 | } |
| 89 | |
| 90 | Vec3<float> TileObjectDoodad::getVoxelCentrePosition() const { return getPosition(); } |
| 91 |