2014-12-27 12:34:55 -07:00

13 lines
390 B
C#

using System;
namespace TrueCraft.API.Networking
{
public interface IPacketReader
{
int ProtocolVersion { get; }
void RegisterPacketType<T>(bool clientbound = true, bool serverbound = true) where T : IPacket;
IPacket ReadPacket(IMinecraftStream stream, bool serverbound = true);
void WritePacket(IMinecraftStream stream, IPacket packet);
}
}