This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
2015-06-20 19:43:28 -07:00

16 lines
583 B
C#

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace TrueCraft.API.Networking
{
public interface IPacketReader
{
int ProtocolVersion { get; }
ConcurrentDictionary<object, IPacketSegmentProcessor> Processors { get; }
void RegisterPacketType<T>(bool clientbound = true, bool serverbound = true) where T : IPacket;
IEnumerable<IPacket> ReadPackets(object key, byte[] buffer, int offset, int length, bool serverbound = true);
void WritePacket(IMinecraftStream stream, IPacket packet);
}
}