cOverworld* cOverworld_Manager::Get(const std::string& str) { cOverworld* world = Get_from_Name(str); if (world) { return world; } return Get_from_Path(utf8_to_path(str)); }
void cOverworld_Manager :: handle_world( const CEGUI::XMLAttributes &attributes ) { std::string ow_name = attributes.getValueAsString( "Name" ).c_str(); std::string ow_comment = attributes.getValueAsString( "Comment" ).c_str(); // if available cOverworld *overworld = Get_from_Name( ow_name ); // set comment if( overworld ) { overworld->m_description->m_comment = ow_comment; } }