summaryrefslogtreecommitdiffstats
path: root/old/network/Network.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'old/network/Network.hpp')
-rw-r--r--old/network/Network.hpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/old/network/Network.hpp b/old/network/Network.hpp
deleted file mode 100644
index 1281289..0000000
--- a/old/network/Network.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#pragma once
-
-#include <memory>
-#include "Socket.hpp"
-#include "Packet.hpp"
-
-enum ConnectionState {
- Handshaking,
- Login,
- Play,
- Status,
-};
-
-class Network {
- Socket *socket;
- StreamSocket *stream;
-
- std::shared_ptr<Packet> ReceivePacketByPacketId(int packetId, ConnectionState state, StreamInput &stream);
-public:
- Network(std::string address, unsigned short port);
- ~Network();
-
- std::shared_ptr<Packet> ReceivePacket(ConnectionState state = Play);
- void SendPacket(Packet &packet);
- std::shared_ptr<Packet> ParsePacketPlay(PacketNamePlayCB id);
-}; \ No newline at end of file