1
0
cuberite-2a/Server/Plugins/APIDump
Mat 7d4934534e
Stabilise MoveToWorld (#4004)
* Stabilise MoveToWorld

* Fix comments and deprecate ScheduleMoveToWorld

* Enhanced thread safety for m_WorldChangeInfo

* Return unique_ptr from cAtomicUniquePtr::exchange

* cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld.

Allows broadcasting entities added to the world from the world's tick thread.
This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize.

As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible.
This isn't used anywhere in Cuberite so it's now deprecated.

* Update entity position after removing it from the world.
Fixes broadcasts being sent to the wrong chunk.

* Fix style

* cEntity: Update LastSentPosition when sending spawn packet

* Add Wno-deprecated-declarations to the lua bindings

* Kill uses of ScheduleMoveToWorld
2020-03-05 12:52:34 +02:00
..
Classes Moved growing from cWorld / cChunk to cBlockHandler descendants. 2019-10-28 10:45:43 +01:00
Hooks Fix use item doc error (#4279) 2018-08-03 09:11:56 +01:00
Static Renamed output directory to Server 2015-09-05 22:01:21 +02:00
APIDesc.lua Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
InfoFile.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
lang-lua.js Renamed output directory to Server 2015-09-05 22:01:21 +02:00
LICENSE-prettify.txt Renamed output directory to Server 2015-09-05 22:01:21 +02:00
main_APIDump.lua Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
main.css Renamed output directory to Server 2015-09-05 22:01:21 +02:00
prettify.css Renamed output directory to Server 2015-09-05 22:01:21 +02:00
prettify.js Renamed output directory to Server 2015-09-05 22:01:21 +02:00
SettingUpDecoda.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
SettingUpZeroBrane.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
UsingChunkStays.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
WebWorldThreads.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
Writing-a-Cuberite-plugin.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00