| 6550 | } |
| 6551 | |
| 6552 | ScriptingApi::Content::ScriptComponent * ScriptingApi::Content::getComponentWithName(const Identifier &componentName) |
| 6553 | { |
| 6554 | for (int i = 0; i < getNumComponents(); i++) |
| 6555 | { |
| 6556 | if (components[i]->name == componentName) |
| 6557 | { |
| 6558 | return components[i].get(); |
| 6559 | } |
| 6560 | } |
| 6561 | |
| 6562 | return nullptr; |
| 6563 | } |
| 6564 | |
| 6565 | const ScriptingApi::Content::ScriptComponent * ScriptingApi::Content::getComponentWithName(const Identifier &componentName) const |
| 6566 | { |
no test coverage detected