mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 18:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_ESM_GLOBALSCRIPT_H
 | |
| #define OPENMW_ESM_GLOBALSCRIPT_H
 | |
| 
 | |
| #include "cellref.hpp"
 | |
| #include "components/esm/refid.hpp"
 | |
| #include "locals.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     class ESMReader;
 | |
|     class ESMWriter;
 | |
| 
 | |
|     /// \brief Storage structure for global script state (only used in saved games)
 | |
| 
 | |
|     struct GlobalScript
 | |
|     {
 | |
|         RefId mId; /// \note must be lowercase
 | |
|         Locals mLocals;
 | |
|         bool mRunning;
 | |
|         RefId mTargetId; // for targeted scripts
 | |
|         RefNum mTargetRef;
 | |
| 
 | |
|         void load(ESMReader& esm);
 | |
|         void save(ESMWriter& esm) const;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |