예제 #1
0
        static void Main(string[] args)
        {
            map_chooser = new MapChooser(cg);

            cg.OnGameOver += SetGameEnded;

            EnterPhase(typeof(GamePhase));

            GameLoop loop = new GameLoop();

            loop.Start();
        }
예제 #2
0
        static void Main(string[] args)
        {
            map_chooser = new MapChooser(cg);

            cg.OnGameOver += GameOver;

            GameLoop loop = new GameLoop();

            loop.AddToLoop(print_running_trace, 30, GameState.Ingame);
            loop.AddToLoop(prevent_map_timeout, 30, GameState.Ingame);
            loop.AddToLoop(HandleBots, 30, GameState.Ingame);
            loop.AddToLoop(HandleAutoBalance, 15, GameState.Ingame);

            loop.AddToLoop(CheckAutobalance, 10, GameState.Ingame);
            loop.AddToLoop(OnePlayerDM, 15, GameState.Ingame);

            loop.AtMapTime(EndGameLog, 30);
            loop.AtMapTime(BeginGameLog, 30);


            loop.Start();
        }