summaryrefslogtreecommitdiff
path: root/src/clientserver.h
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-10 21:43:40 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-11 15:22:36 +0200
commitecd5c5f9206437c320da029680cf1d053b644761 (patch)
treefd8c439dc142aa2ae9e87ec75dfcf71c8c12f868 /src/clientserver.h
parent91d1186cbb0e651de919e17e6808c75c20a0ef6f (diff)
downloadminetest-ecd5c5f9206437c320da029680cf1d053b644761.tar.gz
minetest-ecd5c5f9206437c320da029680cf1d053b644761.tar.bz2
minetest-ecd5c5f9206437c320da029680cf1d053b644761.zip
Clients inform server on wielded item
This is done with the new TOSERVER_PLAYERITEM message, that informs the server on the index of the wielded item.
Diffstat (limited to 'src/clientserver.h')
-rw-r--r--src/clientserver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clientserver.h b/src/clientserver.h
index 4981b7ea8..717e657b7 100644
--- a/src/clientserver.h
+++ b/src/clientserver.h
@@ -301,6 +301,14 @@ enum ToServerCommand
[30] u8[28] new password
*/
+ TOSERVER_PLAYERITEM=0x37,
+ /*
+ Sent to change selected item.
+
+ [0] u16 TOSERVER_PLAYERITEM
+ [2] u16 item
+ */
+
};
inline SharedBuffer<u8> makePacket_TOCLIENT_TIME_OF_DAY(u16 time)