mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 09:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			No EOL
		
	
	
		
			710 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			No EOL
		
	
	
		
			710 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_ESM_OBJECTSTATE_H
 | |
| #define OPENMW_ESM_OBJECTSTATE_H
 | |
| 
 | |
| #include <string>
 | |
| #include <vector>
 | |
| 
 | |
| #include "cellref.hpp"
 | |
| #include "locals.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     class ESMReader;
 | |
|     class ESMWriter;
 | |
| 
 | |
|     // format 0, saved games only
 | |
| 
 | |
|     ///< \brief Save state for objects, that do not use custom data
 | |
|     struct ObjectState
 | |
|     {
 | |
|         CellRef mRef;
 | |
| 
 | |
|         unsigned char mHasLocals;
 | |
|         Locals mLocals;
 | |
|         unsigned char mEnabled;
 | |
|         int mCount;
 | |
|         ESM::Position mPosition;
 | |
|         float mLocalRotation[3];
 | |
| 
 | |
|         virtual void load (ESMReader &esm);
 | |
|         virtual void save (ESMWriter &esm, bool inInventory = false) const;
 | |
| 
 | |
|         virtual ~ObjectState();
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif |