| 337 | } |
| 338 | |
| 339 | void Object::updateOrientation() { |
| 340 | setOrientationIndex(m_config->findValidOrientation(world(), tilePosition(), m_direction.get())); |
| 341 | if (auto orientation = currentOrientation()) { |
| 342 | if (orientation->directionAffinity) |
| 343 | m_direction.set(*orientation->directionAffinity); |
| 344 | m_materialSpaces.set(orientation->materialSpaces); |
| 345 | } |
| 346 | resetEmissionTimers(); |
| 347 | } |
| 348 | |
| 349 | List<Vec2I> Object::anchorPositions() const { |
| 350 | if (auto orientation = currentOrientation()) { |
nothing calls this directly
no test coverage detected