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:
parent
99cf53c908
commit
86a963caca
9 changed files with 104 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue