| 520 | } |
| 521 | |
| 522 | bool Scene::doesGameObjectExists(const std::string& id) |
| 523 | { |
| 524 | for (auto& gameObject : m_gameObjectArray) |
| 525 | { |
| 526 | if (gameObject->getId() == id) |
| 527 | return true; |
| 528 | } |
| 529 | return false; |
| 530 | } |
| 531 | |
| 532 | void Scene::removeGameObject(const std::string& id) |
| 533 | { |