mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 02:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			693 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			693 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_ESSIMPORT_IMPORTINVENTORY_H
 | |
| #define OPENMW_ESSIMPORT_IMPORTINVENTORY_H
 | |
| 
 | |
| #include <string>
 | |
| #include <vector>
 | |
| 
 | |
| #include <components/esm/esmcommon.hpp>
 | |
| #include <components/esm3/cellref.hpp>
 | |
| 
 | |
| #include "importscri.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     class ESMReader;
 | |
| }
 | |
| 
 | |
| namespace ESSImport
 | |
| {
 | |
| 
 | |
|     struct ContItem
 | |
|     {
 | |
|         int mCount;
 | |
|         ESM::NAME32 mItem;
 | |
|     };
 | |
| 
 | |
|     struct Inventory
 | |
|     {
 | |
|         struct InventoryItem : public ESM::CellRef
 | |
|         {
 | |
|             std::string mId;
 | |
|             int mCount;
 | |
|             int mRelativeEquipmentSlot;
 | |
|             SCRI mSCRI;
 | |
|         };
 | |
|         std::vector<InventoryItem> mItems;
 | |
| 
 | |
|         void load(ESM::ESMReader& esm);
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |