YAPOG  0.0.1
Yet Another Pokemon Online Game
IPacket.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_IPACKET_HPP
2 # define YAPOG_IPACKET_HPP
3 
4 # include <SFML/Network/Packet.hpp>
5 
6 # include "YAPOG/Macros.hpp"
10 
11 namespace yap
12 {
13  struct IPacket : public IWriter
14  , public IReader
15  {
16  using IWriter::Accept;
17  using IReader::Accept;
18 
19  virtual ~IPacket () { }
20 
21  virtual const PacketType& GetType () const = 0;
22 
23  virtual sf::Packet& GetInnerPacket () = 0;
24  };
25 } // namespace yap
26 
27 #endif // YAPOG_IPACKET_HPP