diff options
author | sfan5 <sfan5@live.de> | 2020-10-19 20:38:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 20:38:15 +0200 |
commit | 660115c1abc76f3d4f6a6597ed0c4737465c6c55 (patch) | |
tree | f919584a87460f07d81fa994008e77bcb27a3cba /src/client/content_cao.h | |
parent | b826e3973065a0bb81269c8decb5a33073508164 (diff) | |
download | minetest-660115c1abc76f3d4f6a6597ed0c4737465c6c55.tar.gz minetest-660115c1abc76f3d4f6a6597ed0c4737465c6c55.tar.bz2 minetest-660115c1abc76f3d4f6a6597ed0c4737465c6c55.zip |
Decouple entity minimap markers from nametags replacing with show_on_minimap property (#10443)
Diffstat (limited to 'src/client/content_cao.h')
-rw-r--r-- | src/client/content_cao.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/content_cao.h b/src/client/content_cao.h index daf697767..435fc2931 100644 --- a/src/client/content_cao.h +++ b/src/client/content_cao.h @@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc., class Camera; class Client; struct Nametag; +struct MinimapMarker; /* SmoothTranslator @@ -84,6 +85,7 @@ private: scene::IBillboardSceneNode *m_spritenode = nullptr; scene::IDummyTransformationSceneNode *m_matrixnode = nullptr; Nametag *m_nametag = nullptr; + MinimapMarker *m_marker = nullptr; v3f m_position = v3f(0.0f, 10.0f * BS, 0); v3f m_velocity; v3f m_acceleration; @@ -254,6 +256,8 @@ public: void updateNametag(); + void updateMarker(); + void updateNodePos(); void step(float dtime, ClientEnvironment *env); |