1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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

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