Ejemplo n.º 1
0
        /// <summary>
        ///   Initialize a instance of Server.
        /// </summary>
        /// <param name="log"> Logger instance. </param>
        /// <param name="port"> Port to listen on. </param>
        internal Server(Logger log, int port = 9993)
        {
            _server = this;
            _log = log;
            _database = new Database(Config.DbHost, Config.DbUser, Config.DbPass, Config.DbName, _log);
            _login = new LoginServerConnection(Config.LoginServerAddress, Config.LocalNetPort, Config.LocalNetPassowrd);
            _netService = new NetworkService(log, port);

            Console.Clear();
            Console.Title = string.Format("Metin2 Game Server Emulator [Version {0}]",
                                          Assembly.GetExecutingAssembly().GetName().Version);

            Console.WriteLine("Metin2 Game Server Emulator [Version {0}]\n",
                              Assembly.GetExecutingAssembly().GetName().Version);
        }
Ejemplo n.º 2
0
 internal CharacterDAO(Database connection)
 {
     _conn = connection;
 }
Ejemplo n.º 3
0
 internal GuildDAO(Database connection)
 {
     _conn = connection;
 }