| 347 | } |
| 348 | |
| 349 | List<Vec2I> Object::anchorPositions() const { |
| 350 | if (auto orientation = currentOrientation()) { |
| 351 | List<Vec2I> positions; |
| 352 | for (auto anchor : orientation->anchors) |
| 353 | positions.append(anchor.position + tilePosition()); |
| 354 | return positions; |
| 355 | } else { |
| 356 | return {}; |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | List<Vec2I> Object::spaces() const { |
| 361 | if (auto orientation = currentOrientation()) |
no test coverage detected