2015-01-18 21:52:11 +00:00
|
|
|
#ifndef OPENMW_ESSIMPORT_IMPORTINVENTORY_H
|
|
|
|
#define OPENMW_ESSIMPORT_IMPORTINVENTORY_H
|
|
|
|
|
2023-12-17 14:21:12 +00:00
|
|
|
#include <cstdint>
|
2015-01-18 21:52:11 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2019-12-05 20:42:12 +00:00
|
|
|
#include <components/esm/esmcommon.hpp>
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/cellref.hpp>
|
2019-12-05 20:42:12 +00:00
|
|
|
|
2015-01-22 02:54:33 +00:00
|
|
|
#include "importscri.hpp"
|
2015-01-18 21:52:11 +00:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
2019-12-05 20:42:12 +00:00
|
|
|
struct ContItem
|
|
|
|
{
|
2023-12-17 13:03:45 +00:00
|
|
|
int32_t mCount;
|
2019-12-05 20:42:12 +00:00
|
|
|
ESM::NAME32 mItem;
|
|
|
|
};
|
|
|
|
|
2015-01-18 21:52:11 +00:00
|
|
|
struct Inventory
|
|
|
|
{
|
|
|
|
struct InventoryItem : public ESM::CellRef
|
|
|
|
{
|
|
|
|
std::string mId;
|
2023-12-17 13:03:45 +00:00
|
|
|
int32_t mCount;
|
|
|
|
int32_t mRelativeEquipmentSlot;
|
2015-01-22 02:54:33 +00:00
|
|
|
SCRI mSCRI;
|
2015-01-18 21:52:11 +00:00
|
|
|
};
|
|
|
|
std::vector<InventoryItem> mItems;
|
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|