| 486 | } |
| 487 | |
| 488 | Array<Actor*> Actor::GetChildren(const MClass* type) const |
| 489 | { |
| 490 | Array<Actor*> result; |
| 491 | if (type->IsInterface()) |
| 492 | { |
| 493 | for (auto child : Children) |
| 494 | if (child->GetClass()->HasInterface(type)) |
| 495 | result.Add(child); |
| 496 | } |
| 497 | else |
| 498 | { |
| 499 | for (auto child : Children) |
| 500 | if (child->GetClass()->IsSubClassOf(type)) |
| 501 | result.Add(child); |
| 502 | } |
| 503 | return result; |
| 504 | } |
| 505 | |
| 506 | void Actor::DestroyChildren(float timeLeft) |
| 507 | { |
nothing calls this directly
no test coverage detected