1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 20:53:52 +00:00
openmw/apps/opencs/model/world/ref.hpp
fteppe 20da0892ef openMW_test_suite compiles and runs
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
2022-12-27 19:15:55 +01:00

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