#ifndef COMPONENTS_ESM_ESMTERRAIN #define COMPONENTS_ESM_ESMTERRAIN #include #include #include #include namespace ESM4 { struct Land; } namespace ESM { struct Land; struct LandRecordData; class LandData { public: LandData(); LandData(const ESM::Land& Land, int loadFlags); LandData(const ESM4::Land& Land, int loadFlags); ~LandData(); std::span getHeights() const { return mHeights; } std::span getNormals() const { return mNormals; } std::span getColors() const { return mColors; } std::span getTextures() const { return mTextures; } float getSize() const { return mSize; } float getMinHeight() const { return mMinHeight; } float getMaxHeight() const { return mMaxHeight; } int getLandSize() const { return mLandSize; } int getLoadFlags() const { return mLoadFlags; } int getPlugin() const { return mPlugin; } private: std::unique_ptr mData; int mLoadFlags = 0; std::vector mHeightsData; float mMinHeight = 0.f; float mMaxHeight = 0.f; float mSize = 0.f; int mLandSize = 0; int mPlugin = 0; std::span mHeights; std::span mNormals; std::span mColors; std::span mTextures; }; } #endif // ! COMPNENTS_ESM_ESMTERRAIN