Exemple #1
0
        void c_ClientWorldSelected(object sender, ClientWorldSelectedEventArgs e)
        {
            if (ClientWorldSelected != null)
            {
                ClientWorldSelected(sender, e);
            }

            Client c     = (Client)sender;
            int    world = e.WorldID;

            var worldInfo = worldInfos.Where(x => x.WorldId == world).First();

            byte[] bufferWorldSelected = PacketManager.SendWorldIP(worldInfo.IPAddress, worldInfo.Port);
            c.Send(bufferWorldSelected);
        }
        void c_ClientWorldSelected(object sender, ClientWorldSelectedEventArgs e)
        {
            if (ClientWorldSelected != null)
                ClientWorldSelected(sender, e);

            Client c = (Client)sender;
            int world = e.WorldID;

            var worldInfo = worldInfos.Where(x => x.WorldId == world).First();

            byte[] bufferWorldSelected = PacketManager.SendWorldIP(worldInfo.IPAddress, worldInfo.Port);
            c.Send(bufferWorldSelected);
        }