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

Method DeleteLight

Source/Graphics/dynamiclightcollection.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool DynamicLightCollection::DeleteLight(int id) {
71 for (int i = 0, len = dynamic_lights.size(); i < len; ++i) {
72 if (dynamic_lights[i].id == id) {
73 dynamic_lights.erase(dynamic_lights.begin() + i);
74 return true;
75 }
76 }
77 return false;
78}
79
80void DynamicLightCollection::Init() {
81}

Callers 2

DisposeMethod · 0.80
SetEnabledMethod · 0.80

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected