1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Decouple entity minimap markers from nametags replacing with show_on_minimap property (#10443)

This commit is contained in:
sfan5 2020-10-19 20:38:15 +02:00 committed by GitHub
parent b826e39730
commit 660115c1ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 85 additions and 11 deletions

View file

@ -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);