mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
linux build
clang format 14.0 Arm64 build
This commit is contained in:
parent
a9e0489867
commit
2bb17279df
@ -16,6 +16,7 @@
|
||||
|
||||
#include <deque>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace osg
|
||||
{
|
||||
|
@ -1192,6 +1192,11 @@ namespace MWWorld
|
||||
MWWorld::TypedDynamicStore<ESM4::Cell>::clearDynamic();
|
||||
}
|
||||
|
||||
// ESM4 Land
|
||||
//=========================================================================
|
||||
// Needed to avoid include of ESM4::Land in header
|
||||
Store<ESM4::Land>::Store() {}
|
||||
|
||||
void Store<ESM4::Land>::updateLandPositions(const Store<ESM4::Cell>& cells)
|
||||
{
|
||||
for (auto& it : mStatic)
|
||||
@ -1214,7 +1219,7 @@ namespace MWWorld
|
||||
else
|
||||
return foundLand->second;
|
||||
}
|
||||
|
||||
|
||||
// ESM4 Reference
|
||||
//=========================================================================
|
||||
|
||||
|
@ -309,10 +309,11 @@ namespace MWWorld
|
||||
std::unordered_map<ESM::ExteriorCellLocation, const ESM4::Land*> mLands;
|
||||
|
||||
public:
|
||||
Store();
|
||||
void updateLandPositions(const Store<ESM4::Cell>& cells);
|
||||
|
||||
const ESM4::Land* search(ESM::ExteriorCellLocation cellLocation) const;
|
||||
const std::unordered_map<ESM::ExteriorCellLocation, const ESM4::Land*>& getLands() const { return mLands; };
|
||||
const std::unordered_map<ESM::ExteriorCellLocation, const ESM4::Land*>& getLands() const { return mLands; }
|
||||
};
|
||||
|
||||
template <>
|
||||
|
@ -137,14 +137,35 @@ namespace ESM4
|
||||
// void blank();
|
||||
static constexpr ESM::RecNameInts sRecordId = ESM::REC_LAND4;
|
||||
|
||||
std::span<const float> getHeights() const override { return mHeights; }
|
||||
std::span<const VNML> getNormals() const override { return mVertNorm; }
|
||||
std::span<const unsigned char> getColors() const override { return mVertColr; }
|
||||
std::span<const float> getHeights() const override
|
||||
{
|
||||
return mHeights;
|
||||
}
|
||||
std::span<const VNML> getNormals() const override
|
||||
{
|
||||
return mVertNorm;
|
||||
}
|
||||
std::span<const unsigned char> getColors() const override
|
||||
{
|
||||
return mVertColr;
|
||||
}
|
||||
std::span<const uint16_t> getTextures() const override;
|
||||
float getSize() const override { return REAL_SIZE; }
|
||||
float getMinHeight() const override { return mMinHeight; }
|
||||
float getMaxHeight() const { return mMaxHeight; }
|
||||
int getLandSize() const { return VERTS_PER_SIDE; }
|
||||
float getSize() const override
|
||||
{
|
||||
return REAL_SIZE;
|
||||
}
|
||||
float getMinHeight() const override
|
||||
{
|
||||
return mMinHeight;
|
||||
}
|
||||
float getMaxHeight() const
|
||||
{
|
||||
return mMaxHeight;
|
||||
}
|
||||
int getLandSize() const
|
||||
{
|
||||
return VERTS_PER_SIDE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user