Exemplo n.º 1
0
 private static void PlayerDisconnected(object sender, Events.PlayerDisconnectedEventArgs e)
 {
     if (Active)
     {
         BroMode.GetInstance().UnregisterPlayer(e.Player);
     }
 }
Exemplo n.º 2
0
        public static BroMode GetInstance()
        {
            if (Instance == null)
            {
                Instance = new BroMode();

                BroNames = new List <string>()
                {
                    "Brozo the Clown",
                    "Rag and Brone",
                    "Breau Brummel",
                    "Brole Porter",
                    "Flannery Bro'Connor",
                    "Angelina Brolie",
                    "Marco Brolo",
                    "Placido Bromingo",
                    "Brony Seikaly",
                    "Vincent Van Brogh",
                    "Brodhistiva",
                    "Sandy Broufax",
                    "Brosef Stalin",
                    "Brojohsephat",
                    "Lebrona Helmsley",
                    "Tom Brolicchio",
                    "Brohan Santana",
                    "Brobi-Wan Kenobi",
                    "Haley Broel Osment",
                    "Brometheus",
                    "Fidel Castbro",
                    "Broul Castbro",
                    "Leonid Brozhnev",
                    "Brotello Putin Brodimir Brodimirovich <tm>",
                    "Brangela Merkel",
                    "Brovio Brobrusconi",
                    "Brol Pot",
                    "Elvis Costellbro",
                    "Amy Broehler",
                    "Stephen Brolbert",
                    "Nabroleon Bronaparte",
                    "Broliver Cromwell",
                    "Evander Brolyfield",
                    "Mario Brotali",
                    "Brophia Loren",
                    "David Brohansen",
                    "Terrell Browens",
                    "Tony Bromo",
                    "Braubert",
                    "Pete Brose",
                    "Brony Soprano",
                    "Jonathan Safran Broer",
                    "Alex Brovechkin",
                    "Bro Jackson",
                    "Bropher Grace",
                    "Renzo Pianbro",
                    "Santiagbro Calatrava",
                    "Broam Chomsky",
                    "Evelyn Brah",
                    "Bronus Wagner",
                    "Brad Brohaus",
                    "Giorgibro Armani",
                    "Al Brolson",
                    "Greg Brostertag",
                    "Emilibro Estevez",
                    "Paul Bro Bryant",
                    "Pablo Picassbro",
                    "Broto Baggins",
                    "Diegbro Velazqeuz",
                    "Larry",
                    "Bromar Sharif",
                    "Willem Dabroe",
                    "Brolden Caulfield",
                    "Broni Mitchell",
                    "Truman Cabrote",
                    "John Broltrane",
                    "Broman Brolanski",
                    "Gary Broldman",
                    "Teddy Broosevelt",
                    "Marilyn Monbroe",
                    "Charles Brokowski",
                    "Rimbraud",
                    "Brogi Berra",
                    "Czeslaw Mibroscz",
                    "Paul Brauguin",
                    "Tim Tebro",
                    "Edgar Allen Bro",
                    "Christopher Brolumbus",
                    "Norah Brones",
                    "Brofessor X",
                    "Brofiteroles",
                    "Rice o Broni",
                    "Pete Brozelle",
                    "The Sultan of Bronei",
                    "C-3PBro",
                    "Brodhisattva",
                    "Brohsaphat",
                    "Gandalf",
                    "Bro Chi Minh",
                    "Dirk Diggler",
                    "Brodo Baggins",
                    "Bromer Simpson",
                    "Grady Sizemore",
                    "Helmut Brohl",
                    "Foghorn Leghorn",
                    "Brobespierre",
                    "Nicolas Sarbrozy",
                    "Sherlock Brolmes",
                    "John Brolmes",
                    "Coolibro",
                    "Broco Crisp",
                    "Broald Dahl",
                    "Bronan the Brahbarian",
                    "Bro Derek",
                    "Mr. Brojangles",
                    "Bro Diddley",
                    "Yo-Yo Brah",
                    "BrO. J. Simpson",
                    "Mephistophbroles",
                    "Wolfgang Amadeus Brozart",
                    "G.I. Bro",
                    "Brosama bin Laden",
                    "Magnetbro"
                };

                RegisteredBroNames = new Dictionary <int, Player>();

                Player.Disconnected += new EventHandler <Events.PlayerDisconnectedEventArgs>(PlayerDisconnected);

                Player.Connected += new EventHandler <Events.PlayerConnectedEventArgs>(PlayerConnected);
            }

            return(Instance);
        }