mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:56:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			637 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			637 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef _ESM_CONT_H
 | 
						|
#define _ESM_CONT_H
 | 
						|
 | 
						|
#include "esm_reader.hpp"
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
/*
 | 
						|
 * Container definition
 | 
						|
 */
 | 
						|
 | 
						|
struct ContItem
 | 
						|
{
 | 
						|
    int count;
 | 
						|
    NAME32 item;
 | 
						|
};
 | 
						|
 | 
						|
struct InventoryList
 | 
						|
{
 | 
						|
    std::vector<ContItem> list;
 | 
						|
 | 
						|
    void load(ESMReader &esm);
 | 
						|
};
 | 
						|
 | 
						|
struct Container
 | 
						|
{
 | 
						|
    enum Flags
 | 
						|
    {
 | 
						|
        Organic = 1, // Objects cannot be placed in this container
 | 
						|
        Respawn = 2, // Respawns after 4 months
 | 
						|
        Unknown = 8
 | 
						|
    };
 | 
						|
 | 
						|
    std::string name, model, script;
 | 
						|
 | 
						|
    float weight; // Not sure, might be max total weight allowed?
 | 
						|
    int flags;
 | 
						|
    InventoryList inventory;
 | 
						|
 | 
						|
    void load(ESMReader &esm);
 | 
						|
};
 | 
						|
}
 | 
						|
#endif
 |