static void Main(string[] args) { Console.Title = "ConquerServer - Game"; GameServerSocket Server = new GameServerSocket() ; Server.OnClientConnected = OnClientConnect; Server.OnClientDisconnected = OnClientDisconnect; Server.OnClientReceived = OnClientReceive; Server.Initialize(); Database = new DatabaseManager(); PacketProcessor = new PacketProcessor(Database); ItemTypeLoader = new ItemTypeLoader(); ItemTypeLoader.LoadItems(); Kernel.LoadMaps(); while (true) { Thread.Sleep(1); } }
static void Main(string[] args) { Console.Title = "ConquerServer - Game"; GameServerSocket Server = new GameServerSocket(); Server.OnClientConnected = OnClientConnect; Server.OnClientDisconnected = OnClientDisconnect; Server.OnClientReceived = OnClientReceive; Server.Initialize(); Database = new DatabaseManager(); PacketProcessor = new PacketProcessor(Database); ItemTypeLoader = new ItemTypeLoader(); ItemTypeLoader.LoadItems(); Kernel.LoadMaps(); while (true) { Thread.Sleep(1); } }