示例#1
0
        protected override void OnMessageReceived(Event e)
        {
            NetworkLogger.Log($"Packet from client [{e.Peer.ID + 1}] on channel [{e.ChannelID}] with length [{e.Packet.Length}]", LogCategory.Packets);

            PayloadHandler.ProcessPacket(e.Packet);
        }
示例#2
0
        protected virtual void OnMessageReceived(Event e)
        {
            NetworkLogger.Log($"Packet from server on channel [{e.ChannelID}] with length [{e.Packet.Length}]", LogCategory.Packets);

            PayloadHandler.ProcessPacket(e.Packet);
        }