| 1716 | } |
| 1717 | |
| 1718 | inline IEntityNodePtr findPlayerStartEntity() |
| 1719 | { |
| 1720 | IEntityNodePtr found; |
| 1721 | |
| 1722 | algorithm::findFirstEntity(GlobalMapModule().getRoot(), [&](const IEntityNodePtr& entity) |
| 1723 | { |
| 1724 | if (entity->getEntity().getEntityClass()->getDeclName() == "info_player_start") |
| 1725 | { |
| 1726 | found = entity; |
| 1727 | } |
| 1728 | |
| 1729 | return found == nullptr; |
| 1730 | }); |
| 1731 | |
| 1732 | return found; |
| 1733 | } |
| 1734 | |
| 1735 | TEST_F(EntityTest, AddPlayerStart) |
| 1736 | { |
no test coverage detected