Exemple #1
0
        public void Start()
        {
            Logger.WriteInternal("Server starting at " + DateTime.Now.ToString());

            server = new Server();

            Config.Load();

            PacketHandlers.LoadPacketHandlers();

            Logger.WriteInternal("[DB ] Loading database...");
            database = new PolarisEF();

            for (int i = 0; i < 10; i++)
            {
                queryServers.Add(new QueryServer(QueryMode.ShipList, 12099 + (100 * i)));
            }

            server.Run();
        }
Exemple #2
0
        public void Start()
        {
            Logger.WriteInternal("Server starting at " + DateTime.Now);

            Server = new Server();

            Config.Load();

            PacketHandlers.LoadPacketHandlers();

            Logger.WriteInternal("[DB ] Loading database...");
            using (var db = new PolarisEf())
                db.SetupDB();

            for (var i = 0; i < 10; i++)
            {
                QueryServers.Add(new QueryServer(QueryMode.ShipList, 12099 + (100 * i)));
            }

            Server.Run();
        }
Exemple #3
0
 public void Setup()
 {
     PacketHandlers.LoadPacketHandlers();
 }