1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 16:53:54 +00:00
openmw/apps/opencs/model/world/ref.hpp

28 lines
588 B
C++
Raw Normal View History

#ifndef CSM_WOLRD_REF_H
#define CSM_WOLRD_REF_H
2022-10-19 17:02:00 +00:00
#include <string>
2015-01-09 11:05:16 +00:00
#include <utility>
#include <components/esm3/cellref.hpp>
namespace CSMWorld
{
/// \brief Wrapper for CellRef sub record
struct CellRef : public ESM::CellRef
{
std::string mId;
std::string mCell;
std::string mOriginalCell;
bool mNew; // new reference, not counted yet, ref num not assigned yet
unsigned int mIdNum;
CellRef();
2015-01-09 11:05:16 +00:00
/// Calculate cell index based on coordinates (x and y)
std::pair<int, int> getCellIndex() const;
};
}
#endif