#ifndef RAGNAROK_SOURCE_RESOURCE_WORLD_TERRAINRESOURCE_H #define RAGNAROK_SOURCE_RESOURCE_WORLD_TERRAINRESOURCE_H #include "Contents/Ground/TerrainHeight.h" #include "Resource/Resource.h" #include class C3dAttr : public CRes { public: C3dAttr(); ~C3dAttr() override; C3dAttr* Create() override; bool Load(const char* name) override; void Unload() override; TerrainHeight Grid() const; /* 0110 */ int width; /* 0114 */ int height; /* 0118 */ int cellSize; private: struct Cell : TerrainHeightCell { // INLINED Cell() noexcept { } }; /* 011C */ std::vector m_cells; }; #if defined(_WIN32) && !defined(_WIN64) static_assert(sizeof(C3dAttr) == 0x0128); #endif #endif