#ifndef CSM_WOLRD_REF_H #define CSM_WOLRD_REF_H #include #include #include 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 getCellIndex() const; }; } #endif