コード例 #1
0
void LogicCollection::Load( std::istream& p_stream, entityid p_id )
{
    std::string temp;
    p_stream >> temp;       // chew up the "[LOGICS]"
    p_stream >> temp;       // load in the first logic name

    // loop while there are logic modules available
    while( temp != "[/LOGICS]" )
    {
        Add( temp, p_id );
        Logic* c = Get( temp );
        c->Load( p_stream );
        p_stream >> temp;       // try reading next logic name
    }
}