Пример #1
0
 public static NetworkLoginFactory getInstance()
 {
     if (NetworkLoginFactory._instance != null)
     {
         return(NetworkLoginFactory._instance);
     }
     NetworkLoginFactory._instance = new NetworkLoginFactory();
     return(NetworkLoginFactory._instance);
 }
Пример #2
0
 private static void Main(string[] args)
 {
     Console.Title = "Project Blackout Server";
     CLogger.getInstance().form();
     Console.ForegroundColor = ConsoleColor.Green;
     CLogger.getInstance().info("-----------------------------");
     CLogger.getInstance().info("|   Servidor Project Wars   |");
     CLogger.getInstance().info("|         PVP 4X4           |");
     CLogger.getInstance().info("|         FIX 88%           |");
     CLogger.getInstance().info("|  developer by Skelleton   |");
     CLogger.getInstance().info("|      SystemPBlackout      |");
     CLogger.getInstance().info("|     Version: " + ((object)ServerVersion.version).ToString() + "     |");
     CLogger.getInstance().info("|       New Battle          |");
     CLogger.getInstance().info("|   Creation By Skelleton   |");
     CLogger.getInstance().info("-----------------------------");
     Console.ForegroundColor = ConsoleColor.White;
     Config.load();
     StartedInventoryItemsParser.getInstance();
     UdpHandler.getInstance().SendPacket((short)byte.MaxValue, new byte[4]);
     GameServerInfoParser.getInstance();
     ChannelInfoParser.getInstance();
     ClanManager.getInstance();
     AccountManager.getInstance();
     ConfigManager.getInstance();
     FriendManager.getInstance();
     RankExpInfoParser.getInstance();
     ShopInfoManager.getInstance();
     MissionManager.getInstance();
     PlayerTemplateParser.getInstance();
     LoginClientManager.getInstance();
     GameClientManager.getInstance();
     NetworkLoginFactory.getInstance();
     NetworkGameFactory.getInstance();
     CLogger.getInstance().warning("Servidor aberto");
     CLogger.getInstance().warning("Servidor aberto");
     CLogger.getInstance().warning("Servidor aberto");
     CLogger.getInstance().warning("Servidor aberto");
     Process.GetCurrentProcess().WaitForExit();
 }
Пример #3
0
 private void BeginAcceptTcpClient(IAsyncResult result)
 {
     NetworkLoginFactory.accept(NetworkLoginFactory._clientLoginListener.EndAcceptTcpClient(result));
     NetworkLoginFactory._clientLoginListener.BeginAcceptTcpClient(new AsyncCallback(this.BeginAcceptTcpClient), (object)null);
 }