MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetLightFromID

Method GetLightFromID

Source/Graphics/dynamiclightcollection.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86DynamicLight* DynamicLightCollection::GetLightFromID(int id) {
87 for (auto& dynamic_light : dynamic_lights) {
88 if (dynamic_light.id == id) {
89 return &dynamic_light;
90 }
91 }
92 return NULL;
93}
94
95void DynamicLightCollection::Draw(BulletWorld& bw) {
96}

Callers 3

DrawMethod · 0.80
MovedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected