You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/apps/opencs/model/world/ref.hpp

28 lines
585 B
C++

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