aboutsummaryrefslogtreecommitdiff
path: root/src/genericobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/genericobject.cpp')
-rw-r--r--src/genericobject.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/genericobject.cpp b/src/genericobject.cpp
index 9a1b9d8d0..1f4f59e92 100644
--- a/src/genericobject.cpp
+++ b/src/genericobject.cpp
@@ -170,3 +170,12 @@ std::string gob_cmd_update_attachment(int parent_id, std::string bone, v3f posit
return os.str();
}
+std::string gob_cmd_set_nametag_color(video::SColor color)
+{
+ std::ostringstream os(std::ios::binary);
+ // command
+ writeU8(os, GENERIC_CMD_SET_NAMETAG_COLOR);
+ // parameters
+ writeARGB8(os, color);
+ return os.str();
+}