mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 17:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			551 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			551 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "loadglob.hpp"
 | |
| 
 | |
| #include "defs.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     unsigned int Global::sRecordId = REC_GLOB;
 | |
| 
 | |
|     void Global::load (ESMReader &esm)
 | |
|     {
 | |
|         mValue.read (esm, ESM::Variant::Format_Global);
 | |
|     }
 | |
| 
 | |
|     void Global::save (ESMWriter &esm) const
 | |
|     {
 | |
|         mValue.write (esm, ESM::Variant::Format_Global);
 | |
|     }
 | |
| 
 | |
|     void Global::blank()
 | |
|     {
 | |
|         mValue.setType (ESM::VT_None);
 | |
|     }
 | |
| 
 | |
|     bool operator== (const Global& left, const Global& right)
 | |
|     {
 | |
|         return left.mId==right.mId && left.mValue==right.mValue;
 | |
|     }
 | |
| }
 |