| 1655 | } |
| 1656 | |
| 1657 | bool Actor::HasActorInHierarchy(Actor* a) const |
| 1658 | { |
| 1659 | bool result = false; |
| 1660 | if (Children.Contains(a)) |
| 1661 | { |
| 1662 | result = true; |
| 1663 | } |
| 1664 | else |
| 1665 | { |
| 1666 | for (int32 i = 0; i < Children.Count(); i++) |
| 1667 | { |
| 1668 | result = Children[i]->HasActorInHierarchy(a); |
| 1669 | if (result) |
| 1670 | break; |
| 1671 | } |
| 1672 | } |
| 1673 | return result; |
| 1674 | } |
| 1675 | |
| 1676 | bool Actor::HasActorInChildren(Actor* a) const |
| 1677 | { |
no test coverage detected