Example #1
0
        static void Main(string[] args)
        {
            Random r = new Random();

            string ip       = args.Length > 0 ? args.First() : "localhost";
            int    port     = 14242;
            int    champion = r.Next(Enum.GetValues(typeof(ChampionTypes)).Length);

            if (args.Length > 1)
            {
                int.TryParse(args[1], out port);
            }

            if (args.Length > 2)
            {
                int.TryParse(args[2], out champion);
            }

            Client.IP       = ip;
            Client.Port     = port;
            Client.Champion = champion;

            Console.WriteLine("Creating game...");
            game = new GreatGame();
            game.Run();
        }
Example #2
0
		static void Main(string[] args)
		{
			Random r = new Random();

			string ip = args.Length > 0 ? args.First() : "localhost";
			int port = 14242;
			int champion = r.Next(Enum.GetValues(typeof(ChampionTypes)).Length);

			if (args.Length > 1) {
				int.TryParse(args[1], out port);
			}

			if (args.Length > 2) {
				int.TryParse(args[2], out champion);
			}

			Client.IP = ip;
			Client.Port = port;
			Client.Champion = champion;

			Console.WriteLine("Creating game...");
			game = new GreatGame();
			game.Run();
		}