1
0
cuberite-2a/src/Entities
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
..
ArrowEntity.cpp Play correct sound when entities are hit by arrows (#4481) 2020-03-04 02:05:04 +02:00
ArrowEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Boat.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Boat.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
CMakeLists.txt Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
EnderCrystal.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
EnderCrystal.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Entity.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Entity.h Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
EntityEffect.cpp Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
EntityEffect.h Implement invisibility effect 2017-08-03 15:34:38 +02:00
ExpBottleEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ExpBottleEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ExpOrb.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
ExpOrb.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FallingBlock.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
FallingBlock.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireChargeEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireChargeEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireworkEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireworkEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Floater.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Floater.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
GhastFireballEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
GhastFireballEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
HangingEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
HangingEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ItemFrame.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ItemFrame.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
LeashKnot.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
LeashKnot.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Minecart.cpp Moved growing from cWorld / cChunk to cBlockHandler descendants. 2019-10-28 10:45:43 +01:00
Minecart.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Painting.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Painting.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Pawn.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Pawn.h cPawn: Reset last ground height in ResetPosition (#4261) 2018-07-23 17:26:48 +01:00
Pickup.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Pickup.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Player.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Player.h Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
ProjectileEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ProjectileEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
SplashPotionEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
SplashPotionEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEggEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEggEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEnderPearlEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEnderPearlEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownSnowballEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownSnowballEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
TNTEntity.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
TNTEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
WitherSkullEntity.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
WitherSkullEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00