mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:56:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			581 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			581 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_ESM_STATSTATE_H
 | 
						|
#define OPENMW_ESM_STATSTATE_H
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
    class ESMReader;
 | 
						|
    class ESMWriter;
 | 
						|
 | 
						|
    // format 0, saved games only
 | 
						|
 | 
						|
    template<typename T>
 | 
						|
    struct StatState
 | 
						|
    {
 | 
						|
        T mBase;
 | 
						|
        T mMod; // Note: can either be the modifier, or the modified value.
 | 
						|
                // A bit inconsistent, but we can't fix this without breaking compatibility.
 | 
						|
        T mCurrent;
 | 
						|
        float mDamage;
 | 
						|
        float mProgress;
 | 
						|
 | 
						|
        StatState();
 | 
						|
 | 
						|
        void load (ESMReader &esm);
 | 
						|
        void save (ESMWriter &esm) const;
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |