diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-22 13:29:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-22 13:29:15 +0000 |
commit | 8b388c4ee59961f4d307c7f9f87641beffb76a53 (patch) | |
tree | 208b2fc38be7b8853fb6b746322301d786eddfe1 /game/network/network.h | |
parent | SetHeightOptions surface changed to defaulted pointer (diff) | |
download | ilt-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.h | 4 |
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); |