コード例 #1
0
ファイル: CElement.cpp プロジェクト: Bargas/mtasa-blue
void CElement::GetDescendantsByTypeSlow ( std::vector < CElement* >& outResult, uint uiTypeHash )
{
    for ( CChildListType::const_iterator iter = m_Children.begin () ; iter != m_Children.end () ; ++iter )
    {
        CElement* pChild = *iter;
        if ( pChild->GetTypeHash () == uiTypeHash )
            outResult.push_back ( pChild );
        if ( !pChild->m_Children.empty () )
            pChild->GetDescendantsByTypeSlow ( outResult, uiTypeHash );
    }
}