From 674fe1e955f729e8328772313c45fe76857ec835 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 19 Aug 2012 21:14:45 +0000 Subject: Window, Chest, Furnace and Pawn are not using cPackets at all git-svn-id: http://mc-server.googlecode.com/svn/trunk@762 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index a73e1f447..ed4d13a61 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -41,6 +41,7 @@ #include "packets/cPacket_13.h" #include "packets/cPacket_ArmAnim.h" +#include "packets/cPacket_BlockAction.h" #include "packets/cPacket_BlockChange.h" #include "packets/cPacket_BlockDig.h" #include "packets/cPacket_BlockPlace.h" @@ -50,8 +51,10 @@ #include "packets/cPacket_Disconnect.h" #include "packets/cPacket_EntityEquipment.h" #include "packets/cPacket_EntityLook.h" +#include "packets/cPacket_EntityStatus.h" #include "packets/cPacket_Flying.h" #include "packets/cPacket_Handshake.h" +#include "packets/cPacket_InventoryProgressBar.h" #include "packets/cPacket_InventorySlot.h" #include "packets/cPacket_ItemSwitch.h" #include "packets/cPacket_KeepAlive.h" @@ -1779,6 +1782,42 @@ void cClientHandle::SendPlayerMoveLook(void) +void cClientHandle::SendEntityStatus(const cEntity & a_Entity, char a_Status) +{ + cPacket_EntityStatus es; + es.m_Status = a_Status; + es.m_UniqueID = a_Entity.GetUniqueID(); + Send(es); +} + + + + + +void cClientHandle::SendMetadata(const cPawn & a_Pawn) +{ + cPacket_Metadata md(a_Pawn.GetMetaData(), a_Pawn.GetUniqueID()); + Send(md); +} + + + + + +void cClientHandle::SendInventoryProgress(char a_WindowID, short a_ProgressBar, short a_Value) +{ + cPacket_InventoryProgressBar Progress; + Progress.m_WindowID = a_WindowID; + Progress.m_ProgressBar = a_ProgressBar; + Progress.m_Value = a_Value; + Progress.m_WindowID = a_WindowID; + Send(Progress); +} + + + + + void cClientHandle::CheckIfWorldDownloaded(void) { if (m_State != csDownloadingWorld) -- cgit v1.2.3