mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 02:26:41 +00:00 
			
		
		
		
	Moving classes from components/misc into Misc namespace. Note: Misc namespace introduced conflict with ESM::Misc and MWClass::Misc classes, so both of them are renamed to ESM::Miscellaneous and MWClass::Miscellaneous. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef _ESM_MISC_H
 | 
						|
#define _ESM_MISC_H
 | 
						|
 | 
						|
#include "esm_reader.hpp"
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
/*
 | 
						|
 * Misc inventory items, basically things that have no use but can be
 | 
						|
 * carried, bought and sold. It also includes keys.
 | 
						|
 */
 | 
						|
 | 
						|
struct Miscellaneous
 | 
						|
{
 | 
						|
    struct MCDTstruct
 | 
						|
    {
 | 
						|
        float weight;
 | 
						|
        int value;
 | 
						|
        int isKey; // There are many keys in Morrowind.esm that has this
 | 
						|
                   // set to 0. TODO: Check what this field corresponds to
 | 
						|
                   // in the editor.
 | 
						|
    };
 | 
						|
    MCDTstruct data;
 | 
						|
 | 
						|
    std::string name, model, icon, script;
 | 
						|
 | 
						|
    void load(ESMReader &esm);
 | 
						|
};
 | 
						|
}
 | 
						|
#endif
 |