public static MasterVoteServerLogic GetServerLogic()
 {
     if (instance == null)
     {
         instance = new MasterVoteServerLogic();
     }
     return(instance);
 }
Esempio n. 2
0
        public static void Main()
        {
//            startNewGame();
//            return;
            LocalThreadManager.Start().Process();
            MongoServerLog.AddServerLog("Master.Start", "1", "1");
            var logic = MasterVoteServerLogic.GetServerLogic();

            while (true)
            {
                Console.WriteLine("Press enter to die");
                Console.ReadLine();
                logic.gameTick(null);
            }
        }