Client sending a GUID to the server.
Inheritance: SagaLib.Packet
Example #1
0
        public void SendToMap(Packets.Login.Get.SendToMap p)
        {
            string server = p.GetIPAddress() + ":" + p.GetPort().ToString();

            this.serverIP = server;
            MapSession map;

            this.state = SESSION_STATE.REDIRECTING;
            Dictionary <string, MapSession> maps = Gateway.Maps;

            if (maps.ContainsKey(server))
            {
                map = maps[server];
            }
            else
            {
                map = new MapSession(p.GetIPAddress(), p.GetPort(), this.SessionID);
                maps.Add(server, map);
            }
            this.MapSession = map;
            map.NewSession(this, p.GetCharID(), p.GetValidationKey());
            //this.MapSession = new MapSession(p.GetIPAddress(), p.GetPort(), p.GetCharID(), p.GetValidationKey(),this.SessionID,this);
            //this.MapSession.Connect();
            //this.LogingSession.netIO.Disconnect();
        }
Example #2
0
        public void OnSendToMap(Packets.Login.Get.SendToMap p)
        {
            uint          id     = p.SessionID;
            GatewayClient client = GatewayClientManager.Instance.clients[id];

            client.SendToMap(p);
            //this.Client.SendToMap(p);
        }