From b18f6637b6c58db20353cd3e77584b646ab36b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Beltr=C3=A1n?= Date: Mon, 21 Aug 2017 10:46:41 +0200 Subject: Fully implemented leashes (#3798) --- src/World.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index 738761aa6..8d8ba90a5 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2503,6 +2503,24 @@ void cWorld::BroadcastDetachEntity(const cEntity & a_Entity, const cEntity & a_P +void cWorld::BroadcastLeashEntity(const cEntity & a_Entity, const cEntity & a_EntityLeashedTo) +{ + m_ChunkMap->BroadcastLeashEntity(a_Entity, a_EntityLeashedTo); +} + + + + + +void cWorld::BroadcastUnleashEntity(const cEntity & a_Entity) +{ + m_ChunkMap->BroadcastUnleashEntity(a_Entity); +} + + + + + void cWorld::BroadcastEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration, const cClientHandle * a_Exclude) { m_ChunkMap->BroadcastEntityEffect(a_Entity, a_EffectID, a_Amplifier, a_Duration, a_Exclude); -- cgit v1.2.3