| 123 | } |
| 124 | |
| 125 | bool viewportIsFocusedOnEntity(const Window& main, EntityId targetEntity) |
| 126 | { |
| 127 | if (targetEntity == EntityId::null || main.viewports[0] == nullptr) |
| 128 | { |
| 129 | return false; |
| 130 | } |
| 131 | |
| 132 | return main.viewportConfigurations[0].viewportTargetSprite == targetEntity; |
| 133 | } |
| 134 | |
| 135 | bool viewportIsFocusedOnAnyEntity(const Window& main) |
| 136 | { |
no outgoing calls
no test coverage detected