summaryrefslogtreecommitdiff
path: root/game/network/network.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 13:29:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 13:29:15 +0000
commit8b388c4ee59961f4d307c7f9f87641beffb76a53 (patch)
tree208b2fc38be7b8853fb6b746322301d786eddfe1 /game/network/network.h
parentSetHeightOptions surface changed to defaulted pointer (diff)
downloadilt-8b388c4ee59961f4d307c7f9f87641beffb76a53.tar.bz2
ilt-8b388c4ee59961f4d307c7f9f87641beffb76a53.tar.xz
ilt-8b388c4ee59961f4d307c7f9f87641beffb76a53.zip
Expose network base width and surface
Diffstat (limited to 'game/network/network.h')
-rw-r--r--game/network/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/game/network/network.h b/game/network/network.h
index be0900b..f8739b8 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -14,6 +14,7 @@
#include <utility>
class SceneShader;
+class Surface;
template<typename> class Ray;
template<size_t... n> using GenDef = std::tuple<glm::vec<n, GlobalDistance>...>;
@@ -47,6 +48,9 @@ public:
[[nodiscard]] virtual float findNodeDirection(Node::AnyCPtr) const = 0;
+ [[nodiscard]] virtual const Surface * getBaseSurface() const = 0;
+ [[nodiscard]] virtual RelativeDistance getBaseWidth() const = 0;
+
protected:
static void joinLinks(const Link::Ptr & l, const Link::Ptr & ol);
static GenCurveDef genCurveDef(const GlobalPosition3D & start, const GlobalPosition3D & end, float startDir);