#ifndef COMPONENTS_ESM_ESMTERRAIN #define COMPONENTS_ESM_ESMTERRAIN #include #include #include #include namespace ESM { class LandData { public: ~LandData() = default; LandData() = default; LandData(const ESM::Land& Land, int loadFLags); LandData(const ESM4::Land& Land, int loadFLags); typedef signed char VNML; 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 mLoadFlags = 0; private: float mMinHeight = 0.f; float mMaxHeight = 0.f; float mSize = 0.f; int mLandSize = 0; std::vector mHeights; std::vector mNormals; std::vector mColors; std::vector mTextures; }; } #endif // ! COMPNENTS_ESM_ESMTERRAIN