Beispiel #1
0
        /// <summary> Připojí tě na server, přihlásí, vybere level a počká až se level spustí. </summary>
        public static MazeClient Connect(string userName, string level, string hostname, ushort port = 4000, bool waitForStart = true)
        {
            var client = new MazeClient(MazeConnection.Connect(hostname, port));

            client.SetUser(userName);
            client.SetLevel(level);
            if (waitForStart)
            {
                client.WaitForStart();
            }
            return(client);
        }
Beispiel #2
0
 public MazeClient(MazeConnection connection)
 {
     this.connection = connection;
 }