示例#1
0
 public Config()
 {
     Name             = "NeoNetsphere";
     Id               = 1;
     Listener         = new IPEndPoint(IPAddress.Loopback, 28003);
     ChatListener     = new IPEndPoint(IPAddress.Loopback, 28004);
     RelayListener    = new IPEndPoint(IPAddress.Loopback, 28005);
     ListenerThreads  = 1;
     WorkerThreads    = 2;
     IP               = "127.0.0.1";
     PlayerLimit      = 100;
     SecurityLevel    = SecurityLevel.User;
     AuthAPI          = new AuthAPI();
     FumbiAPI         = new FumbiAPI();
     SaveInterval     = TimeSpan.FromMinutes(1);
     NoobMode         = true;
     Database         = new DatabasesConfig();
     Game             = new GameSettings();
     BlockedCountries = new string[] { };
     BlockedAddresses = new string[] { };
     ACMode           = 0;
     ResCheck         = false;
     ResHash          = "";
     ResHash_red      = "";
     ResHash_gold     = "";
     ResHash_blue     = "";
     ResHash_violet   = "";
 }
示例#2
0
 public Config()
 {
     Listener       = new IPEndPoint(IPAddress.Loopback, 28002);
     MaxConnections = 100;
     API            = new APIConfig();
     AuthAPI        = new AuthAPIConfig();
     NoobMode       = true;
     AutoRegister   = false;
     Database       = new DatabasesConfig();
 }