summaryrefslogtreecommitdiffstats
path: root/src/Network.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-16 17:11:07 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-16 17:11:07 +0200
commitdee50239be8fff566b3ca687bc70900b391a8164 (patch)
tree6ff6ae2e8e2ea5109d031be8c588f4b8f38f68eb /src/Network.cpp
parent2017-08-12 (diff)
downloadAltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.gz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.bz2
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.lz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.xz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.zst
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.zip
Diffstat (limited to 'src/Network.cpp')
-rw-r--r--src/Network.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Network.cpp b/src/Network.cpp
index e70cce9..789e650 100644
--- a/src/Network.cpp
+++ b/src/Network.cpp
@@ -75,11 +75,11 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
case SpawnGlobalEntity:
break;
case SpawnMob:
- break;
+ return std::make_shared<PacketSpawnMob>();
case SpawnPainting:
break;
case SpawnPlayer:
- break;
+ return std::make_shared<PacketSpawnPlayer>();
case AnimationCB:
break;
case Statistics:
@@ -143,11 +143,11 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
case Map:
break;
case EntityRelativeMove:
- break;
+ return std::make_shared<PacketEntityRelativeMove>();
case EntityLookAndRelativeMove:
- break;
+ return std::make_shared<PacketEntityLookAndRelativeMove>();
case EntityLook:
- break;
+ return std::make_shared<PacketEntityLook>();
case EntityCB:
break;
case VehicleMove:
@@ -165,7 +165,7 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
case UseBed:
break;
case DestroyEntities:
- break;
+ return std::make_shared<PacketDestroyEntities>();
case RemoveEntityEffect:
break;
case ResourcePackSend:
@@ -187,6 +187,7 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
case AttachEntity:
break;
case EntityVelocity:
+ return std::make_shared<PacketEntityVelocity>();
break;
case EntityEquipment:
break;
@@ -215,6 +216,7 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
case CollectItem:
break;
case EntityTeleport:
+ return std::make_shared<PacketEntityTeleport>();
break;
case EntityProperties:
break;