Example #1
0
        // For generic packets like tile updates
        public void Broadcast(NewPackets.PacketType ofType, byte[] packet)
        {
            packet = NewPackets.AppendTypeHeader(ofType, packet);

            countBytes += packet.Length;

            GameServer.Broadcast(packet);
        }
Example #2
0
        public void Send(NewPackets.PacketType ofType, byte[] packet, ConnectedClient client)
        {
            packet = NewPackets.AppendTypeHeader(ofType, packet);

            countBytes += packet.Length;

            GameServer.Send(client, packet);
        }