1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 01:49:54 +00:00
openmw-tes3mp/apps/openmw/mwworld/cells.hpp

44 lines
789 B
C++
Raw Normal View History

#ifndef GAME_MWWORLD_CELLS_H
#define GAME_MWWORLD_CELLS_H
#include <map>
#include <string>
#include "ptr.hpp"
namespace ESM
{
class ESMReader;
}
namespace ESM
{
class ESMStore;
}
namespace MWWorld
{
/// \brief Cell container
class Cells
{
const ESMS::ESMStore& mStore;
ESM::ESMReader& mReader;
std::map<std::string, Ptr::CellStore> mInteriors;
std::map<std::pair<int, int>, Ptr::CellStore> mExteriors;
Cells (const Cells&);
Cells& operator= (const Cells&);
public:
Cells (const ESMS::ESMStore& store, ESM::ESMReader& reader);
Ptr::CellStore *getExterior (int x, int y);
Ptr::CellStore *getInterior (const std::string& name);
};
}
#endif