mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 12:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			929 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			929 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_ESM_SPELLSTATE_H
 | |
| #define OPENMW_ESM_SPELLSTATE_H
 | |
| 
 | |
| #include <map>
 | |
| #include <vector>
 | |
| #include <string>
 | |
| 
 | |
| #include "defs.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     class ESMReader;
 | |
|     class ESMWriter;
 | |
| 
 | |
|     struct SpellState
 | |
|     {
 | |
|         struct CorprusStats
 | |
|         {
 | |
|             int mWorsenings;
 | |
|             TimeStamp mNextWorsening;
 | |
|         };
 | |
| 
 | |
|         struct PermanentSpellEffectInfo
 | |
|         {
 | |
|             int mId;
 | |
|             int mArg;
 | |
|             float mMagnitude;
 | |
|         };
 | |
| 
 | |
|         typedef std::map<std::string, std::map<const int, float> > TContainer;
 | |
|         TContainer mSpells;
 | |
| 
 | |
|         std::map<std::string, std::vector<PermanentSpellEffectInfo> > mPermanentSpellEffects;
 | |
| 
 | |
|         std::map<std::string, CorprusStats> mCorprusSpells;
 | |
| 
 | |
|         std::map<std::string, TimeStamp> mUsedPowers;
 | |
| 
 | |
|         std::string mSelectedSpell;
 | |
| 
 | |
|         void load (ESMReader &esm);
 | |
|         void save (ESMWriter &esm) const;
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |