mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
20da0892ef
Slowly moving through the open-cs errors Good progress in openCS Very good progress on openCS Getting closer with openCS OpenCS compiles and runs! Didn't have time to test it all though ix openMW everything compiles on windows?? Fix gcc Fix Clang
27 lines
585 B
C++
27 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
|