MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / currentClientDrawables

Method currentClientDrawables

source/test/StarTestUniverse.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61List<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}

Callers 1

validateWorldFunction · 0.80

Calls 4

worldClientMethod · 0.80
appendAllMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected