Exemple #1
0
        public WorldSocket(IGame program, WorldServerInfo serverInfo)
        {
            Game = program;
            ServerInfo = serverInfo;

            SendLock = new object();
        }
Exemple #2
0
        public void ConnectTo(WorldServerInfo server)
        {
            if (socket is AuthSocket)
                Key = ((AuthSocket)socket).Key;

            socket.Dispose();

            socket = new WorldSocket(this, server);
            socket.InitHandlers();

            if (socket.Connect())
            {
                socket.Start();
                Connected = true;
            }
            else
                Reconnect();
        }
Exemple #3
0
 public WorldSocket(IGame program, WorldServerInfo serverInfo)
 {
     Game = program;
     ServerInfo = serverInfo;
 }