1
0
cuberite-2a/src/Protocol
Tiger Wang 054a89dd9e Clarify cClientHandle, cPlayer ownership semantics
+ A cPlayer, once created, has a strong pointer to the cClientHandle. The player ticks the clienthandle. If he finds the handle destroyed, he destroys himself in turn. Nothing else can kill the player.
* The client handle has a pointer to the player. Once a player is created, the client handle never outlasts the player, nor does it manage the player's lifetime. The pointer is always safe to use after FinishAuthenticate, which is also the point where cProtocol is put into the Game state that allows player manipulation.
+ Entities are once again never lost by constructing a chunk when they try to move into one that doesn't exist.
* Fixed a forgotten Super invocation in cPlayer::OnRemoveFromWorld.
* Fix SaveToDisk usage in destructor by only saving things cPlayer owns, instead of accessing cWorld.
2021-01-12 12:34:34 +00:00
..
Palettes Prepare for 1.15+ (#4856) 2020-12-21 13:54:04 +00:00
Authenticator.cpp Update submodules (#4727) 2020-05-09 15:51:15 +01:00
Authenticator.h Using Super. 2020-04-16 20:07:48 +00:00
ChunkDataSerializer.cpp Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
ChunkDataSerializer.h Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
CMakeLists.txt 1.14 connection support 2020-07-26 18:55:16 +01:00
ForgeHandshake.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
ForgeHandshake.h zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
MojangAPI.cpp Update submodules (#4727) 2020-05-09 15:51:15 +01:00
MojangAPI.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Packetizer.cpp Introduce recipe book functionality (#4493) 2020-07-14 17:56:42 +01:00
Packetizer.h zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_8.cpp Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
Protocol_1_8.h zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_9.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_9.h zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_10.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_10.h Adding new monster types to enum and saving/loading for easier future implementation (#4941) 2020-11-22 23:41:13 +00:00
Protocol_1_11.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_11.h Remove GetProtocolVersion unneeded comments 2020-07-19 23:11:02 +01:00
Protocol_1_12.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_12.h Adding new monster types to enum and saving/loading for easier future implementation (#4941) 2020-11-22 23:41:13 +00:00
Protocol_1_13.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_13.h 1.13+: Send length-prefixed server Brand string 2020-08-28 21:08:06 +01:00
Protocol_1_14.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Protocol_1_14.h Cleanup Protocol classes 2020-09-18 16:41:06 +01:00
Protocol.h zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
ProtocolRecognizer.cpp zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
ProtocolRecognizer.h Delete duplicated status request handlers 2020-07-18 19:23:10 +01:00
RecipeMapper.cpp Introduce recipe book functionality (#4493) 2020-07-14 17:56:42 +01:00
RecipeMapper.h Introduce recipe book functionality (#4493) 2020-07-14 17:56:42 +01:00