mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 07:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			488 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			488 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_ESM_GLOBALSCRIPT_H
 | |
| #define OPENMW_ESM_GLOBALSCRIPT_H
 | |
| 
 | |
| #include "locals.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     class ESMReader;
 | |
|     class ESMWriter;
 | |
| 
 | |
|     /// \brief Storage structure for global script state (only used in saved games)
 | |
| 
 | |
|     struct GlobalScript
 | |
|     {
 | |
|         std::string mId;
 | |
|         Locals mLocals;
 | |
|         int mRunning;
 | |
|         std::string mTargetId; // for targeted scripts
 | |
| 
 | |
|         void load (ESMReader &esm);
 | |
|         void save (ESMWriter &esm) const;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |