1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-30 18:05:29 +01:00

Add get and set functions for the nametag color

This commit is contained in:
TeTpaAka
2015-05-14 15:54:54 +02:00
committed by est31
parent 99cf53c908
commit 86a963caca
9 changed files with 104 additions and 2 deletions

View File

@@ -197,6 +197,8 @@ public:
void setAttachment(int parent_id, std::string bone, v3f position, v3f rotation);
ObjectProperties* accessObjectProperties();
void notifyObjectPropertiesModified();
void setNametagColor(video::SColor color);
video::SColor getNametagColor();
/*
Inventory interface
@@ -313,6 +315,9 @@ private:
v3f m_attachment_rotation;
bool m_attachment_sent;
video::SColor m_nametag_color;
bool m_nametag_sent;
public:
float m_physics_override_speed;
float m_physics_override_jump;