| 68 | } |
| 69 | |
| 70 | bool 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 | |
| 80 | void DynamicLightCollection::Init() { |
| 81 | } |
no test coverage detected