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

Method backDrawables

source/game/StarTechController.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275List<Drawable> TechController::backDrawables() {
276 List<Drawable> drawables;
277
278 for (auto const& animator : m_techAnimators.netElements()) {
279 if (animator->isVisible()) {
280 for (auto& piece : animator->animator.drawablesWithZLevel(m_movementController->position())) {
281 if (piece.second < 0.0f)
282 drawables.append(std::move(piece.first));
283 }
284 }
285 }
286
287 return drawables;
288}
289
290List<Drawable> TechController::frontDrawables() {
291 List<Drawable> drawables;

Callers 1

drawablesMethod · 0.80

Calls 5

netElementsMethod · 0.80
isVisibleMethod · 0.80
drawablesWithZLevelMethod · 0.80
positionMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected