2010-02-21 16:55:12 +00:00
|
|
|
#ifndef _ESM_CONT_H
|
|
|
|
#define _ESM_CONT_H
|
|
|
|
|
|
|
|
#include "esm_reader.hpp"
|
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-21 16:55:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Container definition
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct ContItem
|
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
int count;
|
|
|
|
NAME32 item;
|
2010-02-21 16:55:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct InventoryList
|
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
std::vector<ContItem> list;
|
2010-02-21 16:55:12 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
void load(ESMReader &esm);
|
2010-02-21 16:55:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Container
|
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
enum Flags
|
2010-02-21 16:55:12 +00:00
|
|
|
{
|
2011-04-08 13:58:21 +00:00
|
|
|
Organic = 1, // Objects cannot be placed in this container
|
|
|
|
Respawn = 2, // Respawns after 4 months
|
|
|
|
Unknown = 8
|
2010-02-21 16:55:12 +00:00
|
|
|
};
|
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
std::string name, model, script;
|
2010-02-21 16:55:12 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
float weight; // Not sure, might be max total weight allowed?
|
|
|
|
int flags;
|
|
|
|
InventoryList inventory;
|
2010-02-21 16:55:12 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
void load(ESMReader &esm);
|
2010-02-21 16:55:12 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|