Example #1
0
 public void close()
 {
     if (Config.debug)
     {
         CLogger.getInstance().info("Jogador desconectado.");
     }
     LoginClientManager.getInstance().removeClient(this);
     this._stream.Dispose();
 }
Example #2
0
        public void close()
        {
            bool debug = Config.debug;

            if (debug)
            {
                CLogger.getInstance().info("[LoginClient] Player disconnect.");
            }
            LoginClientManager.getInstance().removeClient(this);
            this._stream.Dispose();
        }
Example #3
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();
 }
Example #4
0
 private static void accept(TcpClient client)
 {
     LoginClientManager.getInstance().addClient(client);
 }