mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			452 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			452 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "queststate.hpp"
 | 
						|
 | 
						|
#include "esmreader.hpp"
 | 
						|
#include "esmwriter.hpp"
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
    void QuestState::load(ESMReader& esm)
 | 
						|
    {
 | 
						|
        mTopic = esm.getHNRefId("YETO");
 | 
						|
        esm.getHNOT(mState, "QSTA");
 | 
						|
        esm.getHNOT(mFinished, "QFIN");
 | 
						|
    }
 | 
						|
 | 
						|
    void QuestState::save(ESMWriter& esm) const
 | 
						|
    {
 | 
						|
        esm.writeHNRefId("YETO", mTopic);
 | 
						|
        esm.writeHNT("QSTA", mState);
 | 
						|
        esm.writeHNT("QFIN", mFinished);
 | 
						|
    }
 | 
						|
 | 
						|
}
 |