Ejemplo n.º 1
0
 //Public 
 public GameServerConfig()
 {
     //Server
     _ServerListenIP = "0.0.0.0";
     _ServerPort = 2101;
     _ServerExternalIP = "127.0.0.1";
     _ServerMaxConnections = 100;
     _InterServerPort = 1000;
     _InterServerPassword = "******";
     //Database
     _DbHost = "127.0.0.1";
     _DbPort = 3306;
     _DbName = "tera";
     _DbUser = "******";
     _DbPassword = "******";
     _DbConnectionString = "server=" + DbHost + ";database=" + DbName + ";user id=" + DbUser + ";password="******";";
     _DbMinPoolSize = 5;
     _DbMaxPoolSize = 100;
     _DbType = "MySQL";
     //Logging
     _LogLevel = 1;
     _LogFile = string.Format(@"logs\{0}.log", DateTime.Now.ToString("d_M_yyyy HH_mm_ss"));
     //GameSpecific Things
     _ServerMode = eServerMode.Release;
     _WelcomeMessage = "Welcome to teh World of Temu..";
     _LevelCap = 60;
     _ServerRates = 1;
 }
Ejemplo n.º 2
0
 //Public
 public GameServerConfig()
 {
     //Server
     _ServerListenIP       = "0.0.0.0";
     _ServerPort           = 2101;
     _ServerExternalIP     = "127.0.0.1";
     _ServerMaxConnections = 100;
     _InterServerPort      = 1000;
     _InterServerPassword  = "******";
     //Database
     _DbHost             = "127.0.0.1";
     _DbPort             = 3306;
     _DbName             = "tera";
     _DbUser             = "******";
     _DbPassword         = "******";
     _DbConnectionString = "server=" + DbHost + ";database=" + DbName + ";user id=" + DbUser + ";password="******";";
     _DbMinPoolSize      = 5;
     _DbMaxPoolSize      = 100;
     _DbType             = "MySQL";
     //Logging
     _LogLevel = 1;
     _LogFile  = string.Format(@"logs\{0}.log", DateTime.Now.ToString("d_M_yyyy HH_mm_ss"));
     //GameSpecific Things
     _ServerMode     = eServerMode.Release;
     _WelcomeMessage = "Welcome to teh World of Temu..";
     _LevelCap       = 60;
     _ServerRates    = 1;
 }