mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 13:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			814 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			814 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_ESM_MISC_H
 | 
						|
#define OPENMW_ESM_MISC_H
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
class ESMReader;
 | 
						|
class ESMWriter;
 | 
						|
 | 
						|
/*
 | 
						|
 * Misc inventory items, basically things that have no use but can be
 | 
						|
 * carried, bought and sold. It also includes keys.
 | 
						|
 */
 | 
						|
 | 
						|
struct Miscellaneous
 | 
						|
{
 | 
						|
    static unsigned int sRecordId;
 | 
						|
 | 
						|
    struct MCDTstruct
 | 
						|
    {
 | 
						|
        float mWeight;
 | 
						|
        int mValue;
 | 
						|
        int mIsKey; // There are many keys in Morrowind.esm that has this
 | 
						|
                   // set to 0. TODO: Check what this field corresponds to
 | 
						|
                   // in the editor.
 | 
						|
    };
 | 
						|
    MCDTstruct mData;
 | 
						|
 | 
						|
    std::string mId, mName, mModel, mIcon, mScript;
 | 
						|
 | 
						|
    void load(ESMReader &esm);
 | 
						|
    void save(ESMWriter &esm) const;
 | 
						|
 | 
						|
    void blank();
 | 
						|
    ///< Set record to default state (does not touch the ID).
 | 
						|
};
 | 
						|
}
 | 
						|
#endif
 |