public void OnGameEnded()
        {
            if (index == maps.Count)
            {
                return;
            }
            var mapName = maps[index++ % maps.Count];

            log.LogSuccess($"Map Rotation: Next Map => {mapName}");
            settings.GameMap = mapName;
            abathur.Restart();
        }
Beispiel #2
0
        public void OnStep()
        {
            if (!_rendered && _map.Regions != null)
            {
                _map.RenderRegionsToDesktop(_fileName + _iteration);
                Console.WriteLine("rendered: " + _fileName + _iteration);
                _rendered = true;
            }

            if (_rendered && _maps.Count != 0)
            {
                var nextMap = _maps.First();
                _maps.Remove(nextMap);
                _gameSettings.GameMap = nextMap;
                _abathur.Restart();
            }
        }
Beispiel #3
0
 void IModule.OnGameEnded() => abathur.Restart();