summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/geoData.h b/game/geoData.h
index 01582a6..92b9b75 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -78,12 +78,13 @@ public:
static constexpr auto DEFAULT_NEAR_NODE_TOLERANACE = 500.F;
static constexpr auto DEFAULT_MAX_SLOPE = 0.5F;
- const Surface & surface;
+ const Surface * surface = nullptr;
RelativeDistance nearNodeTolerance = DEFAULT_NEAR_NODE_TOLERANACE;
RelativeDistance maxSlope = DEFAULT_MAX_SLOPE;
};
void setHeights(std::span<const GlobalPosition3D> triangleStrip, const SetHeightsOpts &);
+ [[nodiscard]] size_t getGeneration() const;
[[nodiscard]] auto
getExtents() const
@@ -128,4 +129,5 @@ protected:
private:
GlobalPosition3D lowerExtent {}, upperExtent {};
+ size_t generation {};
};