X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2FPacket.hpp;h=d5479909bac38cbe6085e0e0ce4e95c1849d6c60;hb=104592aabdc70b21065c35fe4d092fc6cdaa1f49;hp=7b482e58726ca8215df125a121ff968db696927d;hpb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;p=blank.git diff --git a/src/net/Packet.hpp b/src/net/Packet.hpp index 7b482e5..d547990 100644 --- a/src/net/Packet.hpp +++ b/src/net/Packet.hpp @@ -2,6 +2,7 @@ #define BLANK_NET_PACKET_HPP_ #include +#include namespace blank { @@ -11,7 +12,8 @@ struct Packet { static constexpr std::uint32_t TAG = 0xFB1AB1AF; enum Type { - PING, + PING = 0, + LOGIN = 1, }; struct Header { @@ -25,6 +27,7 @@ struct Packet { void Tag() noexcept; std::size_t Ping() noexcept; + std::size_t Login(const std::string &name) noexcept; };