-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathProgram.cs
41 lines (36 loc) · 1.37 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Net;
using ClientSimulator.PlayerClass;
namespace ClientSimulator
{
class Program
{
public const string REMOTE_IP = "127.0.0.1";
public const string LOCAL_IP = "127.0.0.1";
public const int REMOTE_TCP_PORT = 10300;
public const int REMOTE_UDP_PORT = 10400;
public const string DB_IP = "localhost";
public const string DB = "opendaoc";
public const string DB_USER = "opendaoc";
public const string DB_PASSWORD = "opendaoc";
public const int DB_PORT = 3306;
public static IPEndPoint SERVER_UDP_ENDPOINT = new(IPAddress.Parse(REMOTE_IP), REMOTE_UDP_PORT);
internal static void Main(string[] args)
{
PlayerCreator pc = new();
int numAccounts = 2000;
int spread = 0;
IPlayerClass[] clients = new IPlayerClass[numAccounts];
Random rand = new();
for (int i = 0; i < numAccounts; ++i)
{
GameLocation gameLocation = new(390482 + rand.Next(-spread,spread), 748466 + rand.Next(-spread,spread), 370, 1);
clients[i] = new Wizard("FooWizzy"+i, "FooPassword", "FooWizzy"+i, gameLocation);
pc.Create(clients[i]);
clients[i].Login();
}
// Keep program alive
Console.ReadLine();
}
}
}