Exemplo n.º 1
0
        /// <summary>
        /// Writes a packet to the server to figure out what to do.
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="serverPacket"></param>
        private void writePackageInfo(NetOutgoingMessage msg, ServerPacketTypes serverPacket)
        {
            PacketInfo packet = new PacketInfo(SenderPackets.Client, ClientPacketTypes.None_None, serverPacket);

            packet.writeToMessage(msg);
            Console.WriteLine(packet.ToString());
        }