12#ifndef MINESERVER_PACKET_H
13#define MINESERVER_PACKET_H
Stream interface.
Definition stream.h:32
Interface for all Packets.
Definition packet.h:25
IPacket(int id)
Construct a new IPacket object.
Definition packet.h:45
void send(IMCStream *stream)
Sends a Packet in Minecraft format.
Definition packet.cpp:15
virtual void write(IMCStream *stream)=0
Write packet data to stream.
virtual void read(IMCStream *stream)=0
Reads data from the stream to a packet.
virtual ~IPacket()=default
Destroy the IPacket object.
int id
Packet Id.
Definition packet.h:61
The file containing data for all of the streams.