2015-01-18 22:52:11 +01:00
|
|
|
#ifndef OPENMW_ESSIMPORT_IMPORTINVENTORY_H
|
|
|
|
#define OPENMW_ESSIMPORT_IMPORTINVENTORY_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <components/esm/cellref.hpp>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Inventory
|
|
|
|
{
|
|
|
|
struct InventoryItem : public ESM::CellRef
|
|
|
|
{
|
|
|
|
std::string mId;
|
2015-01-19 12:22:51 +01:00
|
|
|
int mCount;
|
2015-01-18 22:52:11 +01:00
|
|
|
int mCondition;
|
2015-01-20 23:58:24 +01:00
|
|
|
int mRelativeEquipmentSlot;
|
2015-01-18 22:52:11 +01:00
|
|
|
};
|
|
|
|
std::vector<InventoryItem> mItems;
|
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|