示例#1
0
        public void UpdateMaps()
        {
            var tick  = Find.TickManager.TicksGame;
            var delay = _updateDelay;

            if (ShowLightMap)
            {
                if (_lightMap == null)
                {
                    _lightMap = new LightOverlay();
                }
                _lightMap.Update(tick, delay);
            }

            if (ShowPathMap)
            {
                if (_pathMap == null)
                {
                    _pathMap = new PathOverlay();
                }
                _pathMap.Update(tick, delay);
            }

            if (ShowBeautyMap)
            {
                if (_beautyMap == null)
                {
                    _beautyMap = new BeautyOverlay(_beautyMapUseAverage);
                }
                _beautyMap.Update(tick, delay);
            }
        }
示例#2
0
 public void ResetMaps()
 {
     _lightMap  = null;
     _pathMap   = null;
     _beautyMap = null;
 }