mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-26 08:56:37 +00:00 
			
		
		
		
	A component to load ESM content files with limited support for record types and selection which of them to load. Supported record types are: ACTI, CELL, CONT, DOOR, GMST, LAND, STAT.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			471 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			471 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_CONTENT_LESSBYID_H
 | |
| #define OPENMW_COMPONENTS_CONTENT_LESSBYID_H
 | |
| 
 | |
| #include <string_view>
 | |
| 
 | |
| namespace EsmLoader
 | |
| {
 | |
|     struct LessById
 | |
|     {
 | |
|         template <class T>
 | |
|         bool operator()(const T& lhs, const T& rhs) const
 | |
|         {
 | |
|             return lhs.mId < rhs.mId;
 | |
|         }
 | |
| 
 | |
|         template <class T>
 | |
|         bool operator()(const T& lhs, std::string_view rhs) const
 | |
|         {
 | |
|             return lhs.mId < rhs;
 | |
|         }
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |