Ejemplo n.º 1
0
        public IProtocol Initialize(IMinecraftClient client, INetworkTCP tcp, bool debugPackets = false)
        {
            _minecraft  = client;
            _stream     = new TrueCraftStream(tcp);
            SavePackets = debugPackets;

            PacketsReceived = new List <IPacket>();
            PacketsSended   = new List <IPacket>();

            SendingAsyncHandlers = new Dictionary <Type, Func <ISendingAsyncArgs, Task> >();
            RegisterSupportedSendings();

            return(this);
        }
Ejemplo n.º 2
0
 public TrueCraftStream(INetworkTCP tcp)
 {
     _tcp = tcp;
 }
Ejemplo n.º 3
0
 public ClassicStream(INetworkTCP tcp)
 {
     _tcp = tcp;
 }