2015-01-18 21:52:11 +00: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 11:22:51 +00:00
|
|
|
int mCount;
|
2015-01-23 01:32:38 +00:00
|
|
|
int mCondition;
|
2015-01-18 21:52:11 +00:00
|
|
|
};
|
|
|
|
std::vector<InventoryItem> mItems;
|
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|