diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-12-04 20:37:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 20:37:48 +0100 |
commit | 3d66622772e66154b7624957a27f9be54c4c7c28 (patch) | |
tree | 7ff32e791a39d302f6d1306089b95cb23ebba838 /src/network/networkprotocol.h | |
parent | ae8d14b009650f0fe019301123793312406556e4 (diff) | |
download | dragonfireclient-3d66622772e66154b7624957a27f9be54c4c7c28.tar.xz |
Send only changed node metadata to clients instead of whole mapblock (#5268)
Includes newer style changes and fixes by est31
Improve the block position de-serialization
Add type NodeMetadataMap
Diffstat (limited to 'src/network/networkprotocol.h')
-rw-r--r-- | src/network/networkprotocol.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h index 855afc638..12a91e647 100644 --- a/src/network/networkprotocol.h +++ b/src/network/networkprotocol.h @@ -190,6 +190,7 @@ with this program; if not, write to the Free Software Foundation, Inc., Add TOCLIENT_FORMSPEC_PREPEND PROTOCOL VERSION 37: Redo detached inventory sending + Add TOCLIENT_NODEMETA_CHANGED */ #define LATEST_PROTOCOL_VERSION 37 @@ -638,13 +639,19 @@ enum ToClientCommand std::string channel name u16 message length std::string message - */ + */ + TOCLIENT_MODCHANNEL_SIGNAL = 0x58, /* u8 signal id u16 channel name length std::string channel name - */ + */ + + TOCLIENT_NODEMETA_CHANGED = 0x59, + /* + serialized and compressed node metadata + */ TOCLIENT_SRP_BYTES_S_B = 0x60, /* |