| 59 | } |
| 60 | |
| 61 | List<Drawable> TestUniverse::currentClientDrawables() { |
| 62 | WorldRenderData renderData; |
| 63 | auto worldClient = m_client->worldClient(); |
| 64 | worldClient->centerClientWindowOnPlayer(m_clientWindowSize); |
| 65 | worldClient->render(renderData, 0); |
| 66 | |
| 67 | List<Drawable> drawables; |
| 68 | for (auto& ed : renderData.entityDrawables) { |
| 69 | for (auto& p : ed.layers) |
| 70 | drawables.appendAll(std::move(p.second)); |
| 71 | } |
| 72 | |
| 73 | return drawables; |
| 74 | } |
| 75 | |
| 76 | } |
no test coverage detected