mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_CELLNAMELOADER_H
 | |
| #define OPENMW_CELLNAMELOADER_H
 | |
| 
 | |
| #include <QComboBox>
 | |
| #include <QSet>
 | |
| #include <QString>
 | |
| 
 | |
| #include <components/esm/esmreader.hpp>
 | |
| 
 | |
| namespace ESM {class ESMReader; struct Cell;}
 | |
| namespace ContentSelectorView {class ContentSelector;}
 | |
| 
 | |
| class CellNameLoader {
 | |
| 
 | |
| public:
 | |
| 
 | |
|     /**
 | |
|      * Returns the names of all cells contained within the given content files
 | |
|      * @param contentPaths the file paths of each content file to be examined
 | |
|      * @return the names of all cells
 | |
|      */
 | |
|     QSet<QString> getCellNames(QStringList &contentPaths);
 | |
| 
 | |
| private:
 | |
|     /**
 | |
|      * Returns whether or not the given record is of type "Cell"
 | |
|      * @param name The name associated with the record
 | |
|      * @return whether or not the given record is of type "Cell"
 | |
|      */
 | |
|     bool isCellRecord(ESM::NAME &name);
 | |
| 
 | |
|     /**
 | |
|      * Returns the name of the cell
 | |
|      * @param esmReader the reader currently pointed to a loaded cell
 | |
|      * @return the name of the cell
 | |
|      */
 | |
|     QString getCellName(ESM::ESMReader &esmReader);
 | |
| };
 | |
| 
 | |
| 
 | |
| #endif //OPENMW_CELLNAMELOADER_H
 |