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

Method frontDrawables

source/game/StarTechController.cpp:290–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290List<Drawable> TechController::frontDrawables() {
291 List<Drawable> drawables;
292
293 for (auto const& animator : m_techAnimators.netElements()) {
294 if (animator->isVisible()) {
295 for (auto& piece : animator->animator.drawablesWithZLevel(m_movementController->position())) {
296 if (piece.second >= 0.0f)
297 drawables.append(std::move(piece.first));
298 }
299 }
300 }
301
302 return drawables;
303}
304
305List<LightSource> TechController::lightSources() const {
306 List<LightSource> lightSources;

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