mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 10:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			531 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			531 B
		
	
	
	
		
			C++
		
	
	
	
	
	
 | 
						|
#include "creaturestate.hpp"
 | 
						|
 | 
						|
void ESM::CreatureState::load (ESMReader &esm)
 | 
						|
{
 | 
						|
    ObjectState::load (esm);
 | 
						|
 | 
						|
    if (mHasCustomState)
 | 
						|
    {
 | 
						|
        mInventory.load (esm);
 | 
						|
 | 
						|
        mCreatureStats.load (esm);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
void ESM::CreatureState::save (ESMWriter &esm, bool inInventory) const
 | 
						|
{
 | 
						|
    ObjectState::save (esm, inInventory);
 | 
						|
 | 
						|
    if (mHasCustomState)
 | 
						|
    {
 | 
						|
        mInventory.save (esm);
 | 
						|
 | 
						|
        mCreatureStats.save (esm);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
void ESM::CreatureState::blank()
 | 
						|
{
 | 
						|
    ObjectState::blank();
 | 
						|
    mCreatureStats.blank();
 | 
						|
}
 |