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

Method lightSources

source/game/StarTechController.cpp:305–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305List<LightSource> TechController::lightSources() const {
306 List<LightSource> lightSources;
307
308 for (auto const& animator : m_techAnimators.netElements()) {
309 if (animator->isVisible())
310 lightSources.appendAll(animator->animator.lightSources(m_movementController->position()));
311 }
312
313 return lightSources;
314}
315
316List<AudioInstancePtr> TechController::pullNewAudios() {
317 List<AudioInstancePtr> newAudios;

Callers

nothing calls this directly

Calls 4

netElementsMethod · 0.80
isVisibleMethod · 0.80
appendAllMethod · 0.80
positionMethod · 0.45

Tested by

no test coverage detected