| 1957 | } |
| 1958 | |
| 1959 | Array<Actor*> Level::GetActors(const MClass* type, bool activeOnly) |
| 1960 | { |
| 1961 | Array<Actor*> result; |
| 1962 | CHECK_RETURN(type, result); |
| 1963 | ScopeLock lock(ScenesLock); |
| 1964 | for (int32 i = 0; i < Scenes.Count(); i++) |
| 1965 | ::GetActors(type, type->IsInterface(), Scenes[i], activeOnly, result); |
| 1966 | return result; |
| 1967 | } |
| 1968 | |
| 1969 | Array<Script*> Level::GetScripts(const MClass* type, Actor* root) |
| 1970 | { |