| 540 | } |
| 541 | |
| 542 | std::vector<Script::GameObject*> Scene::getAllGameObjects( |
| 543 | const std::string& objectType) |
| 544 | { |
| 545 | std::vector<Script::GameObject*> returnVec; |
| 546 | for (auto& gameObject : m_gameObjectArray) |
| 547 | { |
| 548 | if (objectType.empty() || objectType == gameObject->getType()) |
| 549 | returnVec.push_back(gameObject.get()); |
| 550 | } |
| 551 | return returnVec; |
| 552 | } |
| 553 | |
| 554 | Script::GameObject& Scene::createGameObject( |
| 555 | const std::string& obj, const std::string& id) |
no test coverage detected